diff options
author | Erik Dubbelboer <erik@dubbelboer.com> | 2021-06-18 13:36:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-18 13:36:54 +0200 |
commit | 87fc95849cd9ec7ffb3555bd7ec6317865902241 (patch) | |
tree | 7da68d05a3da0ef5c9fabcd3bd0da39edb1df9b6 /.github | |
parent | Defined Transport for the client (#1045) (diff) | |
download | fasthttp-87fc95849cd9ec7ffb3555bd7ec6317865902241.tar.gz fasthttp-87fc95849cd9ec7ffb3555bd7ec6317865902241.tar.bz2 fasthttp-87fc95849cd9ec7ffb3555bd7ec6317865902241.zip |
Run go test on github actions (#1047)
* Run go test on github actions
travis-ci.org has stopped.
See also: https://github.com/curl/curl/issues/7150
Downside: github actions don't support ppc64le
* Run less
* delete .travis.yml
* Remove travis + minor lint fixes
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/lint.yml | 10 | ||||
-rw-r--r-- | .github/workflows/security.yml | 8 | ||||
-rw-r--r-- | .github/workflows/test.yml | 21 |
3 files changed, 33 insertions, 6 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 22b46e4..ef1b5c5 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,7 +1,9 @@ -name: lint - -on: [push, pull_request] - +name: Lint +on: + push: + branches: + - master + pull_request: jobs: lint: runs-on: ubuntu-latest diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml index da67002..7763984 100644 --- a/.github/workflows/security.yml +++ b/.github/workflows/security.yml @@ -1,10 +1,14 @@ -on: [push, pull_request] name: Security +on: + push: + branches: + - master + pull_request: jobs: test: strategy: matrix: - go-version: [1.13.x, 1.14.x, 1.15.x, 1.16.x] + go-version: [1.16.x] platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} steps: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..489d983 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,21 @@ +name: Test +on: + push: + branches: + - master + pull_request: +jobs: + test: + strategy: + matrix: + go-version: [1.15.x, 1.16.x] + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go-version }} + - run: go version + - run: go test ./... + - run: go test -race ./... |