feat: add scaffold configs
and scaffold params
commands and start remove placeholders
#11588
Workflow file for this run
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: Integration | |
on: | |
pull_request: | |
push: | |
paths-ignore: | |
- '**.md' | |
branches: | |
- main | |
- release/* | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
pre-test: | |
runs-on: ubuntu-latest | |
outputs: | |
matrix: ${{ steps.set-matrix.outputs.matrix }} | |
steps: | |
- uses: actions/[email protected] | |
- name: Finding files and store to output | |
id: set-matrix | |
run: echo "matrix=$({ cd integration && find . -type d ! -name testdata -maxdepth 1 -print; } | tail -n +2 | cut -c 3- | jq -R . | jq -cs .)" >> $GITHUB_OUTPUT | |
integration: | |
name: test ${{ matrix.test-path }} | |
runs-on: ubuntu-latest | |
needs: pre-test | |
if: fromJSON(needs.pre-test.outputs.matrix)[0] != null | |
continue-on-error: false | |
strategy: | |
fail-fast: true | |
matrix: | |
test-path: ${{fromJson(needs.pre-test.outputs.matrix)}} | |
steps: | |
- uses: actions/[email protected] | |
- uses: technote-space/[email protected] | |
with: | |
PATTERNS: | | |
**/*.go | |
**/*.plush | |
**/*.tpl | |
go.mod | |
go.sum | |
**/testdata/** | |
- uses: actions/setup-go@v4 | |
if: env.GIT_DIFF | |
with: | |
go-version: 'stable' | |
- name: Run Integration Tests | |
if: env.GIT_DIFF | |
env: | |
GOTOOLCHAIN: local+path | |
GOSUMDB: off | |
run: go test -v -timeout 120m ./integration/${{ matrix.test-path }} | |
status: | |
runs-on: ubuntu-latest | |
needs: integration | |
if: always() | |
steps: | |
- name: Update result status | |
run: | | |
if [ "${{ needs.integration.result }}" = "failure" ]; then | |
exit 1 | |
else | |
exit 0 | |
fi |