Skip to content

if-arch: only run the pipeline if runtime arch matches #3626

if-arch: only run the pipeline if runtime arch matches

if-arch: only run the pipeline if runtime arch matches #3626

Workflow file for this run

name: Go Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: audit
- name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: './go.mod'
check-latest: true
- name: Install bubblewrap
run: |
sudo apt-get update -y
sudo apt-get install -y bubblewrap
- uses: chainguard-dev/actions/goimports@main
- name: Test
run: make test