Skip to content

Commit d21c89f

Browse files
authored
Merge pull request #926 from ivanvc/use-github-runners-for-arm64-robustness-tests
Use GitHub runners for arm64 robustness tests
2 parents eb9c76f + 36a2a0e commit d21c89f

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

.github/workflows/robustness_test.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@ jobs:
88
count: 10
99
testTimeout: 30m
1010
runs-on: "['ubuntu-latest']"
11+
arm64:
12+
uses: ./.github/workflows/robustness_template.yaml
13+
with:
14+
count: 10
15+
testTimeout: 30m
16+
runs-on: "['ubuntu-24.04-arm']"

.github/workflows/tests-template.yml

-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ permissions: read-all
1515

1616
jobs:
1717
test-linux:
18-
# this is to prevent arm64 jobs from running at forked projects
19-
if: ${{ github.repository == 'etcd-io/bbolt' || inputs.runs-on == 'ubuntu-latest' }}
2018
strategy:
2119
fail-fast: false
2220
matrix:

.github/workflows/tests_arm64.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Tests ARM64
3+
permissions: read-all
4+
on: [push, pull_request]
5+
jobs:
6+
test-linux-arm64:
7+
uses: ./.github/workflows/tests-template.yml
8+
test-linux-arm64-race:
9+
uses: ./.github/workflows/tests-template.yml
10+
with:
11+
runs-on: ubuntu-24.04-arm
12+
targets: "['linux-unit-test-4-cpu-race']"
13+
14+
coverage:
15+
needs:
16+
- test-linux-arm64
17+
- test-linux-arm64-race
18+
runs-on: ubuntu-24.04-arm
19+
steps:
20+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21+
- id: goversion
22+
run: echo "goversion=$(cat .go-version)" >> "$GITHUB_OUTPUT"
23+
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
24+
with:
25+
go-version: ${{ steps.goversion.outputs.goversion }}
26+
- run: make coverage

0 commit comments

Comments
 (0)