Skip to content

Commit 6577e41

Browse files
committed
added vitest_pull_request_tests.yml github action
1 parent e67983b commit 6577e41

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# ./.github/workflows/vitest_pull_request_tests.yml
2+
3+
# This workflow will do a clean installation of node dependencies
4+
# then cache/restore them
5+
# then build the source code (currently disabled)
6+
# then run tests across different versions of node (only node 16.x for Vitest currently)
7+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
8+
9+
name: Node.js CI Vitest Run Tests
10+
11+
on:
12+
pull_request:
13+
branches: [ "main" ]
14+
# push:
15+
# branches: [ "main" ]
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
strategy:
21+
matrix:
22+
node-version: [16.x]
23+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
24+
steps:
25+
- uses: actions/checkout@v3
26+
- name: Use Node.js ${{ matrix.node-version }}
27+
uses: actions/setup-node@v3
28+
with:
29+
node-version: ${{ matrix.node-version }}
30+
cache: 'npm'
31+
- run: npm ci
32+
# - run: npm run generate --if-present
33+
- run: npm test

0 commit comments

Comments
 (0)