Skip to content

Modernize Javascript and tool chain #6

Modernize Javascript and tool chain

Modernize Javascript and tool chain #6

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test all
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4.4.0
with:
node-version-file: ".nvmrc"
- name: Enable corepack
run: corepack enable
- name: Use yarn cache
uses: actions/cache@v4.2.3
with:
path: "**/node_modules"
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: yarn
- name: Run linter
run: yarn lint
- name: Check types
run: yarn check-types
- name: Redis Server in GitHub Actions
uses: supercharge/redis-github-action@1.8.0
- name: Run tests
run: yarn test-all