Skip to content

Commit b28a42c

Browse files
authored
chore(ci): run tests on both amd64 and arm64 (#3889)
* run tests on both amd64 and arm64 * use ubuntu-24.04 runners
1 parent ef5f458 commit b28a42c

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

.github/workflows/e2e.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,14 @@ concurrency:
1414

1515
jobs:
1616
regular-path:
17-
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
include:
20+
- arch: amd64
21+
runner: ubuntu-24.04
22+
- arch: arm64
23+
runner: ubuntu-24.04-arm
24+
runs-on: ${{ matrix.runner }}
1825
steps:
1926
- name: Checkout code
2027
uses: actions/checkout@v4
@@ -27,10 +34,11 @@ jobs:
2734
with:
2835
go-version: "1.22.11"
2936
cache: true
30-
- run: yarn --frozen-lockfile
37+
- name: Install node-canvas
38+
run: sudo apt-get update && sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
3139
- run: make build
3240
- name: Cypress run
33-
uses: cypress-io/github-action@v5
41+
uses: cypress-io/github-action@v6
3442
with:
3543
wait-on: http://localhost:4040/ready
3644
start: make run
@@ -57,12 +65,13 @@ jobs:
5765
with:
5866
go-version: "1.22.11"
5967
cache: true
60-
- run: yarn --frozen-lockfile
68+
- name: Install node-canvas
69+
run: sudo apt-get update && sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
6170
- run: make build
6271
- name: run nginx with /foobar/
6372
run: docker compose -f scripts/base-url/docker-compose.yaml up -d
6473
- name: Cypress run
65-
uses: cypress-io/github-action@v5
74+
uses: cypress-io/github-action@v6
6675
with:
6776
wait-on: http://localhost:8080/foobar/ready
6877
start: |

.github/workflows/test.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,14 @@ jobs:
3737
- name: Check generated files
3838
run: make generate check/unstaged-changes
3939
test:
40-
runs-on: ubuntu-latest
40+
strategy:
41+
matrix:
42+
include:
43+
- arch: amd64
44+
runner: ubuntu-24.04
45+
- arch: arm64
46+
runner: ubuntu-24.04-arm
47+
runs-on: ${{ matrix.runner }}
4148
steps:
4249
- name: Checkout code
4350
uses: actions/checkout@v4

0 commit comments

Comments
 (0)