fix: global config in request context #28
This file contains 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: Test | |
on: | |
push: | |
tags: | |
- v* | |
branches: | |
- main | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: go test | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: setup-tparse | |
run: go install github.com/mfridman/tparse@latest | |
- uses: arduino/setup-task@v2 | |
with: | |
# renovate: datasource=github-releases depName=go-task/task | |
version: 3.40.1 | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: setup | |
run: | | |
task setup | |
task build | |
- name: test | |
run: ./scripts/test.sh | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Ensure scm-engine binary work | |
run: ./scm-engine -h | |
- name: Test scm-engine against a GitLab project | |
run: ./scm-engine gitlab evaluate all | |
if: env.SCM_ENGINE_TOKEN | |
env: | |
SCM_ENGINE_TOKEN: "${{ secrets.GITLAB_INTEGRATION_TEST_API_TOKEN }}" | |
SCM_ENGINE_CONFIG_FILE: ".scm-engine.gitlab.example.yml" | |
GITLAB_PROJECT: "jippi/scm-engine-schema-test" | |
GITLAB_BASEURL: https://gitlab.com/ | |
- name: Show any diff that may be in the project | |
run: git diff |