Skip to content

Merge pull request #1 from sondavidb/automate-arm-testing #3

Merge pull request #1 from sondavidb/automate-arm-testing

Merge pull request #1 from sondavidb/automate-arm-testing #3

Workflow file for this run

name: Build
on:
push:
branches: [ main ]
paths:
- '**'
- '!docs/**' # ignore docs changes
- '!**.md' # ignore markdown changes
pull_request:
branches: [ main ]
paths:
- '**.go'
- 'go.*'
- 'cmd/go.*'
- 'Makefile'
- 'Dockerfile'
- 'integration/**'
- 'scripts/**'
jobs:
test-arm64:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.20.6'
- uses: uraimo/run-on-arch-action@v2.5.1
id: unit-tests
with:
arch: armv7
distro: ubuntu20.04
run: |
echo ::set-output name=make::$(make)
echo ::set-output name=make-test::$(make test)
- run: echo $ {{ steps.unit-tests.outputs.make }}
- run: echo % {{ steps.unit-tests.outputs.makes-test-results }}
integration-arm64:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
containerd: ["1.6.19", "1.7.0"]
env:
DOCKER_BUILD_ARGS: "CONTAINERD_VERSION=${{ matrix.containerd }}"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.20.6'
- uses: uraimo/run-on-arch-action@v2.5.1
id: integration-tests
with:
arch: armv7
distro: ubuntu20.04
run: |
echo ::set-output name=make-integration::$(make integration)
- run: echo % {{ steps.integration-tests.outputs.make-integration }}