Skip to content

Commit

Permalink
run tests on aarch64, ppc64le and armv7
Browse files Browse the repository at this point in the history
  • Loading branch information
drakkan committed Dec 21, 2020
1 parent 39d0113 commit cebf6a7
Showing 1 changed file with 37 additions and 12 deletions.
49 changes: 37 additions & 12 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,40 @@ jobs:

- name: Run tests
run: |
go test -integration -v ./...
go test -testserver -v ./...
go test -integration -testserver -v ./...
go test -integration -allocator -v ./...
go test -testserver -allocator -v ./...
go test -integration -testserver -allocator -v ./...
go test -race -integration -v ./...
go test -race -testserver -v ./...
go test -race -integration -testserver -v ./...
go test -race -integration -allocator -v ./...
go test -race -testserver -allocator -v ./...
go test -race -integration -allocator -testserver -v ./...
make integration
make integration_w_race
run-tests-other-archs:
name: Run tests on other archs
runs-on: ubuntu-latest
strategy:
matrix:
include:
- arch: aarch64
distro: ubuntu20.04
go-arch: arm64
- arch: ppc64le
distro: ubuntu20.04
go-arch: ppc64le
- arch: armv7
distro: ubuntu20.04
go-arch: armv6l
steps:
- uses: actions/checkout@v2
- uses: uraimo/run-on-arch-action@v2.0.8
name: Run tests
with:
arch: ${{ matrix.arch }}
distro: ${{ matrix.distro }}
shell: /bin/bash

install: |
apt-get update -q -y
apt-get install -q -y curl gcc make openssh-sftp-server
GO_VERSION=$(curl https://golang.org/VERSION?m=text)
curl --verbose -o go.tar.gz -L https://golang.org/dl/${GO_VERSION}.linux-${{ matrix.go-arch }}.tar.gz
tar -C /usr/local -xzf go.tar.gz
run: |
export PATH=$PATH:/usr/local/go/bin
make integration

0 comments on commit cebf6a7

Please sign in to comment.