Bump typescript from 5.6.3 to 5.7.2 #2628
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linting | |
on: | |
push: | |
pull_request: | |
jobs: | |
cache-keys: | |
name: Setup – Cache keys | |
runs-on: ubuntu-latest | |
outputs: | |
build: build-${{ steps.build.outputs.hash }}-v2 | |
dot-cache: dot-cache-${{ github.event.number }}-v1 | |
node-modules: node-modules-${{ steps.node-modules.outputs.hash }}-v1 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- id: build | |
run: echo "::set-output name=hash::${{ hashFiles('assets/**', 'content/**', 'layouts/**', 'static/**', '**/package.json', '**/package-lock.json') }}" | |
- id: node-modules | |
run: echo "::set-output name=hash::${{ hashFiles('**/package-lock.json') }}" | |
test-lint: | |
name: Test – Lint | |
needs: cache-keys | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Get cached dependencies | |
uses: actions/cache@v4 | |
with: | |
path: | | |
node_modules | |
key: ${{ needs.cache-keys.outputs.node-modules }} | |
- name: Check that package-lock.json is valid JSON | |
run: jq empty package-lock.json | |
- name: Install dependencies | |
run: npm ci | |
- name: Run linters | |
run: npm run lint |