Skip to content

Bump to 2.0.0

Bump to 2.0.0 #525

Workflow file for this run

name: Main Workflow
on: [push, pull_request]
jobs:
run:
name: Run
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
node: [18, 20]
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Setup Node
uses: actions/setup-node@master
with:
node-version: ${{ matrix.node }}
- name: Cache
uses: actions/cache@v1
id: cache
with:
path: node_modules
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.node }}
- name: Install
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
- name: Lint
run: npm run lint
- name: Prettier
if: matrix.os == 'ubuntu-latest'
run: npm run prettier:check
- name: Cache Dev
uses: actions/cache@v1
id: cache-dev
with:
path: ./dev/node_modules
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('**/dev/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.node }}
- name: Install Dev
if: steps.cache-dev.outputs.cache-hit != 'true'
run: npm ci
working-directory: "dev"
- name: Test
run: npm run test:all