Skip to content

Bump actions/setup-go from 5 to 6 #3

Bump actions/setup-go from 5 to 6

Bump actions/setup-go from 5 to 6 #3

Workflow file for this run

name: Marketplace
on:
push:
branches: [main, develop]
paths:
- "marketplace/**"
- ".github/workflows/marketplace.yml"
pull_request:
branches: [main]
paths:
- "marketplace/**"
- ".github/workflows/marketplace.yml"
defaults:
run:
working-directory: marketplace
jobs:
go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: "1.22"
cache-dependency-path: marketplace/go.sum
- name: Download modules
run: go mod download
- name: Go test (race)
run: go test ./... -count=1 -race
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.62.0
working-directory: marketplace
args: --timeout=5m
- name: govulncheck
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
"$(go env GOPATH)/bin/govulncheck" ./...
compose-smoke:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Compose up
working-directory: marketplace
run: |
docker compose up -d --build
for i in $(seq 1 90); do
if curl -sf http://localhost:8080/health >/dev/null; then
echo "API healthy"
curl -sf http://localhost:8080/health | head -c 200
exit 0
fi
sleep 2
done
docker compose logs marketplace
exit 1
- name: Compose down
if: always()
working-directory: marketplace
run: docker compose down -v
sbom:
runs-on: ubuntu-latest
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
steps:
- uses: actions/checkout@v4
- name: Generate SBOM (Syft)
uses: anchore/sbom-action@v0
with:
path: marketplace
artifact-name: sbom-marketplace.spdx.json
format: spdx-json