Skip to content

Bump the all-dependencies group across 1 directory with 20 updates #253

Bump the all-dependencies group across 1 directory with 20 updates

Bump the all-dependencies group across 1 directory with 20 updates #253

Workflow file for this run

name: Lint and unit test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Cache node modules
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key:
${{ runner.os }}-build-${{ env.cache-name}}-${{hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install the dependencies
run: npm ci --include=dev
- name: Build
run: npm run build
- name: Lint
run: npm run lint
- name: Run the tests
run: |
git config --global user.name "GitHub Actions Bot"
git config --global user.email "<>"
npm test