Skip to content

Commit

Permalink
github: Fix ci tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tmc committed Jul 2, 2022
1 parent b647ad2 commit 0bd22d1
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 21 deletions.
33 changes: 24 additions & 9 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,50 @@
name: Integration
on: [push, pull_request]

env:
GO_VERSION: 1.16

jobs:
integration:
strategy:
matrix:
go: [1.16]
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: 14
- run: go mod download
- run: cd integration ; npm install
- run: .github/workflows/check-integration

federation:
strategy:
matrix:
go: [1.16]
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: 14
- run: go mod download
- run: cd _examples/federation ; npm install
- run: .github/workflows/check-federation

init:
strategy:
matrix:
go: [1.16]
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
20 changes: 13 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,47 @@
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/golangci-lint-action@v3.1.0
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/security.yml
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.17, 1.18]
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
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
go: [1.16, 1.17, 1.18]
go: [1.16]
runs-on: ${{ matrix.os }}
continue-on-error: true
steps:
Expand Down

0 comments on commit 0bd22d1

Please sign in to comment.