Skip to content

cd: cache npm dependencies #174

cd: cache npm dependencies

cd: cache npm dependencies #174

Workflow file for this run

# .github/workflows/ci.yml
# Continuous Integration (CI) Workflow
name: ci
on:
pull_request:
branches:
- '*'
push:
branches:
- '*'
jobs:
format:
name: Prettier
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Setup Node.js environment with npm caching
uses: ./.github/actions/setup-node-and-deps
- name: Run Prettier
run: npm run format
lint:
name: ESLint
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Setup Node.js environment with npm caching
uses: ./.github/actions/setup-node-and-deps
- name: Run ESLint
run: npm run lint
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Setup Node.js environment with npm caching
uses: ./.github/actions/setup-node-and-deps
- name: Run tests
run: npm run test