Portal OIDC Authentication and Authorisation #59
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: Portal Backend CI | |
| on: | |
| pull_request: | |
| paths: | |
| - 'portal/backend/**' | |
| - '.github/workflows/portal-backend-ci.yml' | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - 'portal/backend/**' | |
| - '.github/workflows/portal-backend-ci.yml' | |
| jobs: | |
| portal-backend-ci: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: portal/backend | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: portal/backend/go.mod | |
| - name: Download deps | |
| run: go mod download | |
| - name: Format check | |
| run: | | |
| test -z "$(gofmt -l . | tee /dev/stderr)" | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v9 | |
| with: | |
| working-directory: portal/backend | |
| version: v2.12.2 | |
| - name: Run tests | |
| run: go test ./... -v |