From 638ff98d04e0ed8bf9ca09d90bf14ad9a46f2931 Mon Sep 17 00:00:00 2001 From: Nicolas Lebrun Date: Fri, 14 Jun 2024 12:26:53 +0200 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 210c333..3f8abc9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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