|
1 | 1 | --- |
2 | 2 | name: Code Health |
3 | 3 | on: |
4 | | - push: |
5 | | - branches: |
6 | | - - main |
7 | | - pull_request: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - main |
| 7 | + pull_request: |
8 | 8 | jobs: |
9 | | - check-style: |
10 | | - runs-on: ubuntu-latest |
11 | | - steps: |
12 | | - - uses: GitHubSecurityLab/actions-permissions/monitor@v1 |
13 | | - - uses: actions/checkout@v4 |
14 | | - - uses: actions/setup-node@v4 |
15 | | - with: |
16 | | - node-version-file: package.json |
17 | | - cache: "npm" |
18 | | - - name: Install dependencies |
19 | | - run: npm ci |
20 | | - - name: Run style check |
21 | | - run: npm run check |
| 9 | + check-style: |
| 10 | + runs-on: ubuntu-latest |
| 11 | + steps: |
| 12 | + - uses: GitHubSecurityLab/actions-permissions/monitor@v1 |
| 13 | + - uses: actions/checkout@v4 |
| 14 | + - uses: actions/setup-node@v4 |
| 15 | + with: |
| 16 | + node-version-file: package.json |
| 17 | + cache: "npm" |
| 18 | + - name: Install dependencies |
| 19 | + run: npm ci |
| 20 | + - name: Run style check |
| 21 | + run: npm run check |
22 | 22 |
|
23 | | - run-tests: |
24 | | - runs-on: ubuntu-latest |
25 | | - steps: |
26 | | - - uses: GitHubSecurityLab/actions-permissions/monitor@v1 |
27 | | - - uses: actions/checkout@v4 |
28 | | - - uses: actions/setup-node@v4 |
29 | | - with: |
30 | | - node-version-file: package.json |
31 | | - cache: "npm" |
32 | | - - name: Install dependencies |
33 | | - run: npm ci |
34 | | - - name: Run tests |
35 | | - run: npm test |
| 23 | + run-tests: |
| 24 | + strategy: |
| 25 | + matrix: |
| 26 | + os: [ubuntu-latest, macos-latest, windows-latest] |
| 27 | + fail-fast: false |
| 28 | + runs-on: ${{ matrix.os }} |
| 29 | + steps: |
| 30 | + - uses: GitHubSecurityLab/actions-permissions/monitor@v1 |
| 31 | + if: matrix.os != 'windows-latest' |
| 32 | + - name: Install keyring deps on Ubuntu |
| 33 | + if: matrix.os == 'ubuntu-latest' |
| 34 | + run: | |
| 35 | + sudo apt update -y |
| 36 | + sudo apt install -y gnome-keyring libdbus-1-dev |
| 37 | +
|
| 38 | + - uses: actions/checkout@v4 |
| 39 | + - uses: actions/setup-node@v4 |
| 40 | + with: |
| 41 | + node-version-file: package.json |
| 42 | + cache: "npm" |
| 43 | + - name: Install dependencies |
| 44 | + run: npm ci |
| 45 | + - name: Run tests |
| 46 | + run: npm test |
0 commit comments