Skip to content

Commit 5212619

Browse files
committed
Refactor Go test workflow to separate orchestrator and package tests
1 parent 7f473e9 commit 5212619

File tree

1 file changed

+38
-5
lines changed

1 file changed

+38
-5
lines changed

.github/workflows/go-test.yml

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,44 @@ env:
1010
GO_VERSION: "1.25.1"
1111

1212
jobs:
13-
go-test:
13+
go-test-orchestrator:
1414
runs-on: ubuntu-latest
1515
steps:
16+
- name: install dependencies
17+
run: |
18+
sudo apt-get update
19+
sudo apt-get install -y android-tools-adb
20+
21+
- name: Checkout code
22+
uses: actions/checkout@v3
23+
24+
- name: Install Task
25+
uses: arduino/setup-task@v2
26+
with:
27+
version: 3.x
28+
repo-token: ${{ secrets.GITHUB_TOKEN }}
29+
30+
- name: Set up Go
31+
uses: actions/setup-go@v5
32+
with:
33+
go-version: ${{ env.GO_VERSION }}
34+
35+
- name: Run `orchestrator` tests
36+
run: task test:orchestrator
37+
38+
go-test-pkg:
39+
runs-on: ${{ matrix.os }}
40+
strategy:
41+
matrix:
42+
os: [ubuntu-latest, windows-latest]
43+
44+
steps:
45+
- name: install dependencies [Linux]
46+
if: runner.os == 'Linux'
47+
run: |
48+
sudo apt-get update
49+
sudo apt-get install -y android-tools-adb
50+
1651
- name: Checkout code
1752
uses: actions/checkout@v3
1853

@@ -27,7 +62,5 @@ jobs:
2762
with:
2863
go-version: ${{ env.GO_VERSION }}
2964

30-
- name: Run tests
31-
run: task test
32-
env:
33-
GH_TOKEN: ${{ secrets.ARDUINOBOT_TOKEN }}
65+
- name: Run `pkg` tests
66+
run: task test:pkg

0 commit comments

Comments
 (0)