Skip to content

Commit

Permalink
chore: check types in ci (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmajor authored Jun 5, 2024
1 parent b120c4d commit 5516102
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 17 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on: pull_request

jobs:
test:
name: Test
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
cache: npm
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test

lint:
name: Lint
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
cache: npm
- name: Install dependencies
run: npm ci
- name: Type check
run: npm run check
17 changes: 0 additions & 17 deletions .github/workflows/main.yml

This file was deleted.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
},
"scripts": {
"build": "rollup -c",
"check": "tsc --noEmit",
"check:watch": "tsc --noEmit --watch",
"test": "ava",
"prepare": "npm run build",
"prepublishOnly": "npm test"
Expand Down

0 comments on commit 5516102

Please sign in to comment.