Skip to content

Add golden tests for GitLab job generator Jsonnet script #24

Add golden tests for GitLab job generator Jsonnet script

Add golden tests for GitLab job generator Jsonnet script #24

Workflow file for this run

---
name: Lint & Test
"on":
pull_request: {}
jobs:
yamllint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: reviewdog/action-yamllint@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
jsonnetfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
make -C gitlab jsonnetfmt_check
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: reviewdog/action-shellcheck@v1
with:
reporter: github-pr-review
pattern: |
*.sh
step-*
test_gitlab_generator_script_define_cases:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Find test cases
run: |
make -sC gitlab list_test_instances >> "$GITHUB_OUTPUT"
test_gitlab_generator_script:
needs: tests_gitlab_generator_script_define_cases

Check failure on line 44 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / Lint & Test

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 44, Col: 12): Job 'test_gitlab_generator_script' depends on unknown job 'tests_gitlab_generator_script_define_cases'.
strategy:
matrix:
instance: ${{ fromJSON(needs.test_gitlab_generator_script_define_cases.outputs.instances) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
make -C gitlab golden-diff -e instance=${{ matrix.instance }}