Skip to content

style: fix zizmor issues #20

style: fix zizmor issues

style: fix zizmor issues #20

Workflow file for this run

name: Integration
on:
workflow_dispatch:
pull_request:
branches: ["main", "master"]
permissions: {}
jobs:
integration:
name: Integration
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true
persist-credentials: false
- name: Setup Go ${{ vars.GO_VERSION }}
uses: actions/setup-go@v5
with:
go-version: ${{ vars.GO_VERSION }}
cache: false
- name: GoReleaser build
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
with:
version: "${{ vars.GORELEASER_VERSION }}"
args: build --clean --snapshot --single-target --id xk6
- name: Setup Bats
uses: bats-core/bats-action@42fcc8700f773c075a16a90eb11674c0318ad507 # 3.0.1
with:
bats-version: "${{ vars.BATS_VERSION }}"
- name: Setup govulncheck
env:
GOVULNCHECK_VERSION: ${{ vars.GOVULNCHECK_VERSION }}
run: |
go install golang.org/x/vuln/cmd/govulncheck@${GOVULNCHECK_VERSION}
- name: Setup gosec
env:
GOSEC_VERSION: ${{ vars.GOSEC_VERSION }}
run: |
go install github.com/securego/gosec/v2/cmd/gosec@${GOSEC_VERSION}
- name: Run tests
run: |
cat >> $GITHUB_STEP_SUMMARY <<END
### Integration Test
END
set -e
bats it/test | tee -a $GITHUB_STEP_SUMMARY