chore(deps): merge dependency updates into dev (#558) #166
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 Admin API Test | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| paths: | |
| - 'src/server/api/go/**' | |
| - '.github/workflows/admin-test.yaml' | |
| pull_request: | |
| branches: | |
| - dev | |
| paths: | |
| - 'src/server/api/go/**' | |
| - '.github/workflows/admin-test.yaml' | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| defaults: | |
| run: | |
| working-directory: src/server/api/go | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| - name: Setup Go | |
| uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c | |
| with: | |
| go-version-file: src/server/api/go/go.mod | |
| cache: true | |
| cache-dependency-path: src/server/api/go/go.sum | |
| - run: go mod tidy | |
| - name: Run tests with coverage | |
| run: go test -v -timeout 30m -coverprofile=coverage.out -covermode=atomic ./... | |
| - name: Upload coverage artifact | |
| if: always() | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a | |
| with: | |
| name: go-admin-coverage | |
| path: src/server/api/go/coverage.out | |
| retention-days: 30 |