Skip to content

Commit

Permalink
Add basic test and workflow for PRs (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
galangel authored Jan 16, 2025
1 parent 39efce8 commit 0ad2816
Show file tree
Hide file tree
Showing 9 changed files with 1,058 additions and 1,897 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '20'

- name: Install dependencies
run: npm install
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/check-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Check tests

on:
pull_request:
types: [opened, synchronize]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'

- name: Install dependencies
run: npm install

- name: Run tests
run: npm test
Loading

0 comments on commit 0ad2816

Please sign in to comment.