Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 21 additions & 5 deletions .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,25 @@ jobs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4

- 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

- uses: actions/setup-go@v5
with:
go-version: "stable"

- name: Download Go modules
run: go mod tidy

- name: Upload prepared workspace
uses: actions/upload-artifact@v4
with:
name: workspace
path: .
retention-days: 1

integration:
name: test ${{ matrix.test-path }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand All @@ -32,17 +47,18 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest ]
test-path: ${{fromJson(needs.pre-test.outputs.matrix)}}
test-path: ${{ fromJson(needs.pre-test.outputs.matrix) }}
steps:
- uses: actions/checkout@v4
- name: Download prepared workspace
uses: actions/download-artifact@v5
with:
name: workspace
path: .

- uses: actions/setup-go@v5
with:
go-version: "stable"

- name: Run Go Mod Tidy
run: go mod tidy

- name: Run Integration Tests
env:
GOTOOLCHAIN: local+path
Expand Down
Loading