Skip to content

Use GH actions to test cross-arch #1

Use GH actions to test cross-arch

Use GH actions to test cross-arch #1

Workflow file for this run

name: Test

Check failure on line 1 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

`pull_requests` is not a valid event name
on:
push:
branches: [main]
pull_requests:
branches: ['*']
permissions: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-versions: [1.21.x, 1.20.x]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
cache-dependency-path: '**/go.sum'
cache: true
- name: Test Native
run: make test
- name: Install QEMU
uses: docker/setup-qemu-action@v1
- name: Test arch=386
run: make test
env:
GOARCH: 386
- name: Test arch=arm64
run: make test
env:
GOARCH: arm64