ci: auto-trigger L3 E2E tests on release tags #142
This file contains hidden or 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
| name: Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| pull_request: | |
| branches: | |
| - main | |
| - master | |
| workflow_dispatch: | |
| inputs: | |
| run_destructive: | |
| description: 'Run destructive (real install) tests' | |
| required: false | |
| type: boolean | |
| default: false | |
| jobs: | |
| test: | |
| name: test | |
| runs-on: macos-latest | |
| permissions: | |
| id-token: write | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: "go.mod" | |
| - name: Vet | |
| run: go vet ./... | |
| - name: Run all tests | |
| run: make test-all | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Run destructive tests | |
| if: ${{ inputs.run_destructive == true }} | |
| run: make test-destructive | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| use_oidc: true | |
| files: ./coverage.out | |
| flags: unittests | |
| name: openboot-coverage | |
| fail_ci_if_error: false | |
| - name: Upload coverage artifacts (on failure) | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: debug-coverage | |
| path: | | |
| coverage.out | |
| coverage.html | |
| retention-days: 7 |