Skip to content

Commit

Permalink
re-enacted long running tests
Browse files Browse the repository at this point in the history
Signed-off-by: Frederic BIDON <[email protected]>
  • Loading branch information
fredbi committed Dec 6, 2023
1 parent 5352ead commit ea699f6
Showing 1 changed file with 61 additions and 1 deletion.
62 changes: 61 additions & 1 deletion .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,67 @@ jobs:
uses: codecov/codecov-action@v3
with:
files: './coverage-${{ matrix.os }}.${{ matrix.go_version }}.out'
flags: '${{ matrix.go_version }}'
flags: 'unittest,${{ matrix.go_version }}'
os: '${{ matrix.os }}'
fail_ci_if_error: false
verbose: true

long-test:
name: Unit tests (long running)
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ ubuntu-latest ]
go_version: ['oldstable', 'stable' ]

steps:
- name: Run spec tests
uses: actions/setup-go@v4
with:
go-version: '${{ matrix.go_version }}'
check-latest: true
cache: true

- uses: actions/checkout@v3

- run: go test -v -enable-long -coverprofile="coverage-long-${{ matrix.os }}.${{ matrix.go_version }}.out" -covermode=atomic ./...

- name: Upload coverage to codecov
uses: codecov/codecov-action@v3
with:
files: './coverage-long-${{ matrix.os }}.${{ matrix.go_version }}.out'
flags: 'longtest,${{ matrix.go_version }}'
os: '${{ matrix.os }}'
fail_ci_if_error: false
verbose: true

spec-test:
name: Unit tests (validates specs)
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ ubuntu-latest ]
go_version: ['oldstable', 'stable' ]

steps:
- name: Run spec tests
uses: actions/setup-go@v4
with:
go-version: '${{ matrix.go_version }}'
check-latest: true
cache: true

- uses: actions/checkout@v3

- run: go test -v -enable-go-swagger -coverprofile="coverage-swagger-${{ matrix.os }}.${{ matrix.go_version }}.out" -covermode=atomic ./...

- name: Upload coverage to codecov
uses: codecov/codecov-action@v3
with:
files: './coverage-swagger-${{ matrix.os }}.${{ matrix.go_version }}.out'
flags: 'spectest,${{ matrix.go_version }}'
os: '${{ matrix.os }}'
fail_ci_if_error: false
verbose: true

0 comments on commit ea699f6

Please sign in to comment.