Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nclslbrn authored Jun 14, 2024
1 parent a3f50ae commit 638ff98
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
name: "Run vitest tests"
on:
pull_request:
branches:
- main
branches: ['main']
push:
branches: ['main']
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 18

- name: Run `npm install`
run: |
npm install
npm run build
- name: Run vitest and report issues
uses: roerohan/vitest-github-action@v1
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Test (vitest)
run: npm run test

0 comments on commit 638ff98

Please sign in to comment.