mirror of
https://github.com/morris/vanilla-todo.git
synced 2025-08-29 16:49:49 +02:00
add gh action for running checks
This commit is contained in:
22
.github/workflows/checks.yml
vendored
Normal file
22
.github/workflows/checks.yml
vendored
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
name: Checks
|
||||||
|
|
||||||
|
on: push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Use Node.js 20
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 20
|
||||||
|
- run: npm ci
|
||||||
|
- run: npm run format-check
|
||||||
|
- run: npm run lint
|
||||||
|
- run: npm run lint-styles
|
||||||
|
- run: npm run dev &
|
||||||
|
- run: npx playwright install --with-deps
|
||||||
|
- run: npm run test-coverage
|
||||||
|
env:
|
||||||
|
CI: true
|
Reference in New Issue
Block a user