Skip to content

Commit

Permalink
ci: Run test on both platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlin committed Dec 1, 2022
1 parent 63d4c0f commit 66a46b9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,16 @@ jobs:
tag: ${{ env.TAG }}

test:
name: test (${{ matrix.platform }})
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
# Note: the ubuntu-latest runner is linux/amd64 so anything else will
# run with emulation, which is still better than nothing.
platform:
- linux/amd64
- linux/arm64
steps:

- uses: docker/login-action@v1
Expand All @@ -64,7 +72,8 @@ jobs:
run: |
git clone https://github.com/nextstrain/zika-tutorial
pip install nextstrain-cli
nextstrain build --image ghcr.io/nextstrain/base:${{ needs.build.outputs.tag }} zika-tutorial -F
docker pull --platform ${{ matrix.platform }} ghcr.io/nextstrain/base:${{ needs.build.outputs.tag }}
nextstrain build --image nextstrain/base:${{ needs.build.outputs.tag }} zika-tutorial -F
push-branch:
if: startsWith(needs.build.outputs.tag, 'branch-') && github.event_name != 'pull_request'
Expand Down

0 comments on commit 66a46b9

Please sign in to comment.