Skip to content

Commit

Permalink
chore: use matrix to group lints
Browse files Browse the repository at this point in the history
  • Loading branch information
dyladan committed Sep 2, 2021
1 parent afbdc17 commit 8c67f56
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ on:

jobs:
build:
strategy:
fail-fast: false
matrix:
package-group: ["stable", "experimental"]
runs-on: ubuntu-latest
container:
image: node:14

steps:
- uses: actions/checkout@v2
Expand All @@ -27,6 +33,9 @@ jobs:
uses: avto-dev/markdown-lint@v1
with:
args: "./**/*.md -i ./CHANGELOG.md"

- name: Use ${{ matrix.package-group }}
run: npm run use:${{ matrix.package-group }}

- name: restore lerna
id: cache
Expand All @@ -35,7 +44,7 @@ jobs:
path: |
node_modules
*/*/node_modules
key: lint-${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('**/package.json') }}
key: lint-${{ matrix.package-group }}-${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('**/package.json') }}

# On a cache miss, install dependencies
- name: Bootstrap
Expand Down

0 comments on commit 8c67f56

Please sign in to comment.