summaryrefslogtreecommitdiffstats
path: root/.github/workflows/cs.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/cs.yml')
-rw-r--r--.github/workflows/cs.yml16
1 files changed, 10 insertions, 6 deletions
diff --git a/.github/workflows/cs.yml b/.github/workflows/cs.yml
index faf298e..e886fd8 100644
--- a/.github/workflows/cs.yml
+++ b/.github/workflows/cs.yml
@@ -7,19 +7,15 @@ on:
- 'feature/**'
- 'release/**'
- 'fix/**'
- paths-ignore:
- - README.md
# The branches below must be a subset of the branches above
pull_request:
branches:
- main
- paths-ignore:
- - README.md
jobs:
lint:
- runs-on: ubuntu-20.04
name: Code linting
+ runs-on: ubuntu-latest
steps:
- name: Checkout code
@@ -30,8 +26,16 @@ jobs:
with:
node-version: '20.x'
+ - name: Setup npm cache
+ uses: actions/cache@v4
+ with:
+ path: ~/.npm
+ key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
+ restore-keys: |
+ ${{ runner.os }}-node-
+
- name: Install npm dependencies
- run: npm ci
+ run: npm ci --ignore-scripts
- name: Code linting
run: npm run lint