-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* github: Test more go versions * github: Fix ci tests * github: Increase verbosity, sleep * github: Drop bash * github: Test go 1.18 and newer node verisons * github: Pull out node 16 for now * github: Only lint 1.16 for now
- Loading branch information
Showing
6 changed files
with
65 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,52 @@ | ||
name: Integration | ||
on: [push, pull_request] | ||
|
||
env: | ||
GO_VERSION: 1.16 | ||
|
||
jobs: | ||
integration: | ||
strategy: | ||
matrix: | ||
go: [1.16, 1.18] | ||
node: [14] | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 3 | ||
container: golang:${{ env.GO_VERSION }}-alpine | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: apk add --no-cache --no-progress nodejs npm git bash | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- run: go mod download | ||
- run: cd integration ; npm install | ||
- run: .github/workflows/check-integration | ||
|
||
federation: | ||
strategy: | ||
matrix: | ||
go: [1.16, 1.18] | ||
node: [14] | ||
runs-on: ubuntu-latest | ||
container: golang:${{ env.GO_VERSION }}-alpine | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: apk add --no-cache --no-progress nodejs npm git bash | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- run: go mod download | ||
- run: cd _examples/federation ; npm install | ||
- run: .github/workflows/check-federation | ||
|
||
init: | ||
strategy: | ||
matrix: | ||
go: [1.16, 1.18] | ||
runs-on: ubuntu-latest | ||
container: golang:${{ env.GO_VERSION }}-alpine | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: apk add --no-cache --no-progress alpine-sdk bash | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- run: .github/workflows/check-init |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,46 @@ | ||
name: Lint | ||
on: [push, pull_request] | ||
|
||
env: | ||
GO_VERSION: 1.16 | ||
|
||
jobs: | ||
lint: | ||
strategy: | ||
matrix: | ||
go: [1.16] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
go-version: ${{ matrix.go }} | ||
- run: go mod download | ||
- run: .github/workflows/check-fmt | ||
- run: .github/workflows/check-generate | ||
|
||
coverage: | ||
strategy: | ||
matrix: | ||
go: [1.16] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
go-version: ${{ matrix.go }} | ||
- run: go mod download | ||
- run: .github/workflows/check-coverage | ||
env: | ||
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
golangci-lint: | ||
strategy: | ||
matrix: | ||
go: [1.16] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
go-version: ${{ matrix.go }} | ||
- name: golangci-lint | ||
uses: golangci/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
name: Security | ||
on: [push, pull_request] | ||
|
||
env: | ||
GO_VERSION: 1.16 | ||
|
||
jobs: | ||
nancy: | ||
strategy: | ||
matrix: | ||
go: [1.16, 1.18] | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
go-version: ${{ matrix.go }} | ||
- run: go mod download && go list -json -deps all > go.list | ||
- uses: sonatype-nexus-community/nancy-github-action@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
name: Test | ||
on: [push, pull_request] | ||
|
||
|
||
env: | ||
GO_VERSION: 1.16 | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
go: [1.16, 1.18] | ||
runs-on: ${{ matrix.os }} | ||
continue-on-error: true | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
go-version: ${{ matrix.go }} | ||
- run: go mod download && go test -race ./... | ||
- run: cd _examples && go mod download && go test -race ./... |
I'm not sure why we skip one version (1.17) here.