PRODENG-3392 Run GHA on selfhosted github runners #561
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: Go unit tests | |
| on: | |
| pull_request: | |
| paths: | |
| - '**.go' | |
| - go.mod | |
| - go.sum | |
| - Makefile | |
| - '.github/workflows/go.yml' | |
| jobs: | |
| unit-test: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - name: Unit Tests | |
| run: make unit-test | |
| env: | |
| TEST_FLAGS: -short |