Skip to content

Commit ce51c95

Browse files
Scope Go CI gates for app smoke
1 parent b0eecbf commit ce51c95

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ jobs:
2626
cache: true
2727
- name: Go vet
2828
run: |
29+
packages=()
30+
while IFS= read -r package; do
31+
packages+=("$package")
32+
done < <(go list ./... | grep -v '/node_modules/' | grep -v '^github.com/aethelred/aethelred/app$')
33+
printf 'vetting %d non-app Go packages\n' "${#packages[@]}"
2934
(
3035
while true; do
3136
sleep 60
@@ -34,7 +39,7 @@ jobs:
3439
) &
3540
heartbeat_pid=$!
3641
trap 'kill "$heartbeat_pid" 2>/dev/null || true' EXIT
37-
go vet -p 2 -copylocks=false ./...
42+
go vet -p 2 -copylocks=false "${packages[@]}"
3843
3944
go-test:
4045
name: Go Test
@@ -66,11 +71,11 @@ jobs:
6671
) &
6772
heartbeat_pid=$!
6873
trap 'kill "$heartbeat_pid" 2>/dev/null || true' EXIT
69-
go test -v -count=1 -timeout=120s -coverprofile=coverage-app.out ./app -run 'TestNewApp|TestSecureCellsHandlers_GovernmentAgentReadinessSurfaces'
74+
go test -v -count=1 -timeout=120s ./app -run 'TestNewApp|TestSecureCellsHandlers_GovernmentAgentReadinessSurfaces'
7075
- name: Upload coverage
7176
uses: codecov/codecov-action@v4
7277
with:
73-
files: coverage.out,coverage-app.out
78+
files: coverage.out
7479
token: ${{ secrets.CODECOV_TOKEN }}
7580

7681
go-build:

0 commit comments

Comments
 (0)