Skip to content

Merge pull request #148 from traPtitech/dependabot/github_actions/act… #410

Merge pull request #148 from traPtitech/dependabot/github_actions/act…

Merge pull request #148 from traPtitech/dependabot/github_actions/act… #410

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
packages:
name: check npm install
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: npm ci
run: npm ci
lint:
name: run lint
runs-on: ubuntu-latest
needs: [packages]
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: npm ci
run: npm ci
- name: lint
run: npm run lint --max-warnings=0
build:
name: run build
runs-on: ubuntu-latest
needs: [packages]
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: npm ci
run: npm ci
- name: build
run: npm run build