Skip to content

Commit

Permalink
Merge pull request #7 from undesicimo/workflow
Browse files Browse the repository at this point in the history
Add GitHub Actions workflow and compile script
  • Loading branch information
undesicimo authored Jan 23, 2024
2 parents fe67494 + 1267dcd commit 4ad6513
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: compile, lint and test

on:
push:
branches: ['main']
pull_request:
branches: ['main']

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 'node'
cache: 'npm'
- run: npm ci
- name: Lint
run: npm run lint
- name: Test
run: npm test
- name: Compile
run: npm run compile
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"build": "tsc",
"test": "vitest --watch=false",
"test:coverage": "vitest --coverage",
"compile": "tsc",
"test:ui": "vitest --ui",
"lint": "eslint --ext .ts src",
"prepublishOnly": "npm run build"
Expand Down

0 comments on commit 4ad6513

Please sign in to comment.