chore: initial commit
This commit is contained in:
49
.github/workflows/ci.yml
vendored
Normal file
49
.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
name: ci
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 20
|
||||
|
||||
- run: npm i -g --force corepack@latest && corepack enable
|
||||
|
||||
- name: Install dependencies
|
||||
run: npx nypm@latest i
|
||||
|
||||
- name: Lint
|
||||
run: npm run lint
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 20
|
||||
|
||||
- run: npm i -g --force corepack@latest && corepack enable
|
||||
|
||||
- name: Install dependencies
|
||||
run: npx nypm@latest i
|
||||
|
||||
- name: Playground prepare
|
||||
run: npm run dev:prepare
|
||||
|
||||
- name: Test
|
||||
run: npm run test
|
||||
Reference in New Issue
Block a user