Skip to content

Commit

Permalink
sync build and lint deps, share node cache
Browse files Browse the repository at this point in the history
  • Loading branch information
bollwyvl committed Dec 12, 2021
1 parent 3944ca5 commit dbb7d23
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/job.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ jobs:
miniforge-variant: Mambaforge
use-mamba: true

- name: 'Revert templated file (TODO: remove)'
run: git checkout requirements/github-actions.yml

- name: Install linting dependencies
run: mamba env update -n test --file requirements/lint.yml

Expand All @@ -86,7 +83,7 @@ jobs:
with:
path: '**/node_modules'
key: |
${{ env.CACHE_EPOCH }}-${{ runner.os }}-node-lint-${{ hashFiles('yarn.lock', 'requirements/github-actions.yml') }}
${{ env.CACHE_EPOCH }}-${{ runner.os }}-node-build-${{ hashFiles('yarn.lock', 'requirements/github-actions.yml') }}
- name: Cache yarn packages
id: cache-yarn-packages
Expand All @@ -113,6 +110,9 @@ jobs:
- name: Lint backend
run: python scripts/lint.py

- name: 'Revert templated file (TODO: remove)'
run: git checkout requirements/github-actions.yml

- name: Lint frontend
run: jlpm lint:check

Expand All @@ -127,6 +127,7 @@ jobs:
os: [ubuntu]
nodejs: ['>=14,<15.0.0a0']
lab: ['>=3.0.0,<4.0.0a0']
r: ['>=4']
steps:
- uses: actions/checkout@v2

Expand Down

0 comments on commit dbb7d23

Please sign in to comment.