File tree 6 files changed +40
-74
lines changed
6 files changed +40
-74
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : ci
2
+ on : [push]
3
+
4
+ jobs :
5
+ fmt :
6
+ runs-on : ubuntu-latest
7
+ container : docker://nhooyr/websocket-ci@sha256:549cc2716fd1ff08608b39a52af95a67bf9f490f6f31933cccd94e750985e2dc
8
+ steps :
9
+ - uses : actions/checkout@v1
10
+ with :
11
+ fetch-depth : 1
12
+ - run : ./ci/fmt.sh
13
+ lint :
14
+ runs-on : ubuntu-latest
15
+ container : docker://nhooyr/websocket-ci@sha256:549cc2716fd1ff08608b39a52af95a67bf9f490f6f31933cccd94e750985e2dc
16
+ steps :
17
+ - uses : actions/checkout@v1
18
+ with :
19
+ fetch-depth : 1
20
+ - run : ./ci/lint.sh
21
+ test :
22
+ runs-on : ubuntu-latest
23
+ container : docker://nhooyr/websocket-ci@sha256:549cc2716fd1ff08608b39a52af95a67bf9f490f6f31933cccd94e750985e2dc
24
+ steps :
25
+ - uses : actions/checkout@v1
26
+ with :
27
+ fetch-depth : 1
28
+ - run : ./ci/test.sh
29
+ env :
30
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 3
3
[ ![ GitHub release (latest SemVer)] ( https://img.shields.io/github/v/release/nhooyr/websocket?color=6b9ded&sort=semver )] ( https://github.com/nhooyr/websocket/releases )
4
4
[ ![ GoDoc] ( https://godoc.org/nhooyr.io/websocket?status.svg )] ( https://godoc.org/nhooyr.io/websocket )
5
5
[ ![ Codecov] ( https://img.shields.io/codecov/c/github/nhooyr/websocket.svg?color=65d6a4 )] ( https://codecov.io/gh/nhooyr/websocket )
6
- [ ![ CI ] ( https://img.shields.io/circleci/build/github/ nhooyr/websocket?label=ci&color=brightgreen )] ( https://github.com/nhooyr/websocket/commits/master )
6
+ [ ![ Actions Status ] ( https://github.com/ nhooyr/websocket/workflows/ci/badge.svg )] ( https://github.com/nhooyr/websocket/actions )
7
7
8
8
websocket is a minimal and idiomatic WebSocket library for Go.
9
9
Original file line number Diff line number Diff line change @@ -4,9 +4,16 @@ ENV DEBIAN_FRONTEND=noninteractive
4
4
ENV GOPATH=/root/gopath
5
5
ENV GOFLAGS="-mod=readonly"
6
6
ENV PAGER=cat
7
+ ENV CI=true
7
8
8
9
RUN apt-get update && \
9
10
apt-get install -y shellcheck npm && \
10
11
npm install -g prettier
11
12
12
13
RUN git config --global color.ui always
14
+
15
+ # Cache go modules.
16
+ COPY . /tmp/websocket
17
+ RUN cd /tmp/websocket && \
18
+ go mod download && \
19
+ rm -rf /tmp/websocket
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- # This script is for local testing. See .circleci for CI.
3
+ # This script is for local testing. See .github/workflows/ci.yml for CI.
4
4
5
5
set -euo pipefail
6
6
cd " $( dirname " ${0} " ) "
Original file line number Diff line number Diff line change @@ -6,8 +6,6 @@ cd "$(git rev-parse --show-toplevel)"
6
6
7
7
argv=(
8
8
go run gotest.tools/gotestsum
9
- # https://circleci.com/docs/2.0/collect-test-data/
10
- " --junitfile=ci/out/websocket/testReport.xml"
11
9
" --format=short-verbose"
12
10
--
13
11
" -vet=off"
@@ -33,5 +31,5 @@ mv ci/out/coverage2.prof ci/out/coverage.prof
33
31
34
32
go tool cover -html=ci/out/coverage.prof -o=ci/out/coverage.html
35
33
if [[ ${CI:- } ]]; then
36
- bash <( curl -s https://codecov.io/bash) -R . -f ci/out/coverage.prof
34
+ bash <( curl -s https://codecov.io/bash) -Z - R . -f ci/out/coverage.prof
37
35
fi
You can’t perform that action at this time.
0 commit comments