File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed
Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Integration Tests
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ types : [opened, synchronize, reopened]
9+
10+ jobs :
11+ test :
12+ name : Test (${{ matrix.integration.name}})
13+ runs-on : ${{ matrix.integration.os }}-latest
14+ strategy :
15+ fail-fast : false
16+ matrix :
17+ integration :
18+ - name : Ubuntu
19+ os : ubuntu
20+ target : ./test
21+
22+ steps :
23+ - name : Checkout code
24+ uses : actions/checkout@v4
25+
26+ - name : Use mise to install dependencies
27+ uses : jdx/mise-action@v2
28+ with :
29+ version : 2025.4.4
30+ env :
31+ # Adding token here to reduce the likelihood of hitting rate limit issues.
32+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33+
34+ - id : go-cache-paths
35+ run : |
36+ echo "go-build=$(go env GOCACHE)" >> "$GITHUB_OUTPUT"
37+ shell : bash
38+
39+ - name : Go Build Cache
40+ uses : actions/cache@v4
41+ with :
42+ path : ${{ steps.go-cache-paths.outputs.go-build }}
43+ key : ${{ runner.os }}-go-integration-test-${{ matrix.integration.name }}-${{ hashFiles('**/go.sum') }}
44+
45+ - name : Run Tests
46+ run : go test "${TAGS:+--tags $TAGS}" "${TARGET}"
47+ shell : bash
48+ env :
49+ # Adding token here to reduce the likelihood of hitting rate limit issues.
50+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
51+ TARGET : ${{ matrix.integration.target }}
52+ TAGS : ${{ matrix.integration.tags }}
You can’t perform that action at this time.
0 commit comments