Skip to content

build: 🔒 npm audit fix #40

build: 🔒 npm audit fix

build: 🔒 npm audit fix #40

Workflow file for this run

name: CI
on:
push:
branches:
- '**'
pull_request:
branches:
- master
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Run ESLint
run: npm run-script lint
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Run Prettier
run: npx prettier --check .
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Build app
run: npm run-script build
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Install dependencies in test app
working-directory: ./test/test-app
run: npm ci
- name: Run tests
run: npm run-script test