Skip to content

Commit 21084c8

Browse files
committed
improve the action
1 parent b3983e7 commit 21084c8

1 file changed

Lines changed: 5 additions & 23 deletions

File tree

.github/workflows/juno-test.yml

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,32 +16,13 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
include:
20-
# Test
21-
- os: ubuntu-latest
22-
stage: Run Tests
23-
JUNO_NEW_STATE: false
24-
- os: macos-latest
25-
stage: Run Tests
26-
JUNO_NEW_STATE: false
27-
- os: ubuntu-arm64-4-core
28-
stage: Run Tests
29-
JUNO_NEW_STATE: false
30-
# New state tests
31-
- os: ubuntu-latest
32-
stage: Run Tests [New State]
33-
JUNO_NEW_STATE: true
34-
- os: macos-latest
35-
stage: Run Tests [New State]
36-
JUNO_NEW_STATE: true
37-
- os: ubuntu-arm64-4-core
38-
stage: Run Tests [New State]
39-
JUNO_NEW_STATE: true
19+
os: [ubuntu-latest, macos-latest, ubuntu-arm64-4-core]
20+
juno-new-state: [false, true]
4021
runs-on: ${{ matrix.os }}
41-
name: ${{ matrix.stage }}
22+
name: Run Tests${{ matrix.juno-new-state && ' [New State]' || '' }}
4223
env:
4324
VM_DEBUG: true
44-
USE_NEW_STATE: ${{ matrix.USE_NEW_STATE }}
25+
JUNO_NEW_STATE: ${{ matrix.juno-new-state }}
4526
steps:
4627
- uses: actions/checkout@v6.0.2
4728
- name: Set up go
@@ -89,3 +70,4 @@ jobs:
8970
token: ${{ secrets.CODECOV_TOKEN }}
9071
fail_ci_if_error: true
9172
files: coverage/coverage.old.out,coverage/coverage.new.out
73+
flags: ${{ matrix.juno-new-state && 'new-state' || 'old-state' }}

0 commit comments

Comments
 (0)