Enforce install-dir containment on uninstall; resolve manifest verification key #80
Workflow file for this run
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: ci | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout this repo | |
| uses: actions/checkout@v7 | |
| with: | |
| path: skillinject | |
| - name: Checkout web4 (sibling protocol repo) | |
| uses: actions/checkout@v7 | |
| with: | |
| repository: pilot-protocol/pilotprotocol | |
| path: web4 | |
| - uses: actions/setup-go@v7 | |
| with: | |
| go-version-file: skillinject/go.mod | |
| cache: true | |
| cache-dependency-path: skillinject/go.sum | |
| - name: Run tests with coverage | |
| working-directory: skillinject | |
| run: go test -race -coverprofile=coverage.out -covermode=atomic ./... | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v7 | |
| with: | |
| files: ./skillinject/coverage.out | |
| flags: unittests | |
| name: skillinject | |
| fail_ci_if_error: false | |
| - name: Coverage summary | |
| working-directory: skillinject | |
| run: go tool cover -func=coverage.out | tail -20 | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: coverage-skillinject | |
| path: skillinject/coverage.out | |
| retention-days: 30 |