Skip to content

doc: updated contributors file #37

doc: updated contributors file

doc: updated contributors file #37

name: integration test
permissions:
pull-requests: read
contents: read
on:
push:
branches:
- master
pull_request:
jobs:
test:
name: integration (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: stable
check-latest: true
cache: true
cache-dependency-path: '**/go.sum'
- name: Run integration tests
working-directory: internal/testintegration
run: >
go test
-v
-tags testintegration
-count 1
-timeout 30m
-coverprofile='integration.coverage.${{ matrix.os }}.out'
-covermode=atomic
-coverpkg=github.com/go-openapi/analysis/...
./...
- name: Upload coverage
if: always()
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
path: 'internal/testintegration/*.coverage.*.out'
name: 'integration.coverage.${{ matrix.os }}'
retention-days: 1
# Single gate job for branch protection rules
integration-test:
name: integration test
needs: test
if: always()
runs-on: ubuntu-latest
steps:
- name: Check matrix results
run: |
if [ "${{ needs.test.result }}" != "success" ]; then
echo "Matrix jobs failed or were cancelled"
exit 1
fi
collect-coverage:
needs: [integration-test]
if: ${{ !cancelled() && needs.integration-test.result == 'success' }}
uses: go-openapi/ci-workflows/.github/workflows/collect-coverage.yml@e8e6599fe480362cb0d5cbdac5b245cc833742f5 # v0.2.15
secrets: inherit