Skip to content

Commit

Permalink
fix CI not doing npm run check
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Feb 1, 2024
1 parent 955788a commit 2f747c4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
strategy:
fail-fast: false
matrix:
nox-sessions:
- 'black check_yaml check_json check_toml check_eof check_trailing_space check_lf'
python-version: ['3.x']
node-version: ['16.x']
include:
- nox-sessions:
- 'black check_yaml check_json check_toml check_eof check_trailing_space check_lf'
python-version: '3.x'
node-version: '16.x'
- nox-sessions: 'mypy pylint'
python-version: '3.8'
- nox-sessions: 'mypy pylint'
Expand All @@ -37,7 +37,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
if: contains(matrix, 'node-version')
if: matrix.node-version
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
Expand All @@ -47,23 +47,23 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Cache node.js modules
if: contains(matrix, 'node-version')
if: matrix.node-version
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-${{ matrix.node-version }}-node_modules-${{ hashFiles('**/package-lock.json') }}
- name: Cache nox environments
if: contains(matrix, 'node-version')
if: matrix.node-version
uses: actions/cache@v3
with:
path: |
.nox/black
.nox/check_*
key: nox-${{ steps.python-setup.outputs.python-version }}-${{ hashFiles('requirements/dev-black.txt', 'requirements/dev-pre_commit_hooks.txt') }}
- run: npm install
if: contains(matrix, 'node-version')
if: matrix.node-version
- run: npm run check
if: contains(matrix, 'node-version')
if: matrix.node-version
- run: pipx run nox -s ${{ matrix.nox-sessions }}

build:
Expand Down

0 comments on commit 2f747c4

Please sign in to comment.