Add NOTTE_CONFIG_DIR override for config path #47
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] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Lint | |
| uses: golangci/golangci-lint-action@v9 | |
| with: | |
| version: latest | |
| - name: Build | |
| run: go build -v ./... | |
| - name: Check generated code is up to date | |
| run: | | |
| go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@v2.5.1 | |
| ./scripts/generate.sh | |
| if [ -n "$(git status --porcelain internal/api/client.gen.go)" ]; then | |
| echo "::error::Generated code is out of date. Run 'make generate' and commit the changes." | |
| git diff internal/api/client.gen.go | |
| exit 1 | |
| fi | |
| - name: Test | |
| run: go test -v -race -short -coverprofile=coverage.out ./... | |
| - name: Upload coverage | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: ./coverage.out | |
| fail_ci_if_error: false |