Skip to content

Commit 2e26070

Browse files
committed
ci: add running ava tests
1 parent b974853 commit 2e26070

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Check building and linting
1+
name: Check testing building linting
22

33
on:
44
push:
@@ -41,4 +41,19 @@ jobs:
4141
run: npm i
4242
- name: Build the project
4343
run: npm run build
44-
44+
test:
45+
name: Run ava tests
46+
runs-on: ubuntu-latest
47+
permissions:
48+
contents: read
49+
steps:
50+
- name: Set up NodeJS LTS
51+
uses: actions/setup-node@v6
52+
with:
53+
node-version: 'lts/*'
54+
- name: Checkout repository
55+
uses: actions/checkout@v6
56+
- name: Install dependencies
57+
run: npm i
58+
- name: Run tests
59+
run: npm run test

0 commit comments

Comments
 (0)