Skip to content

fix: use native platform for Dockerfile builder stage to avoid QEMU arm64 failures #9625

fix: use native platform for Dockerfile builder stage to avoid QEMU arm64 failures

fix: use native platform for Dockerfile builder stage to avoid QEMU arm64 failures #9625

Workflow file for this run

name: Ubuntu Build & Unit Test
on:
pull_request: {}
push: {}
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
with:
go-version: ^1.16
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Build Test
run: |
make
- name: Unit Test
run: go test -race -covermode=atomic -coverprofile=profile.cov ./pkg/... -timeout=30m
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=profile.cov -service=github -ignore=pkg/azurefile/azurefile_interface_mock.go,pkg/azurefile/directvolume_mock.go,pkg/azurefile/directvolume_interface.go,pkg/azurefile/resolver_interface.go