From 82815783b829c1cfabc269afed0c8ac59b0d6f25 Mon Sep 17 00:00:00 2001 From: Anxo Rodriguez Date: Thu, 15 Feb 2024 17:56:53 +0000 Subject: [PATCH] Try to fix build test --- .github/workflows/test.yml | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 59774fe..c226823 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,33 +1,28 @@ name: Unit tests -on: [ push, pull_request ] +on: [push, pull_request] jobs: test: runs-on: ubuntu-latest steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.8.0 - with: - access_token: ${{ github.token }} - - - name: Checkout - uses: actions/checkout@v3 + - uses: actions/checkout@v3 - - name: Setup Node.js + - name: Set up Node.js uses: actions/setup-node@v3 + with: + node-version: 14 - - name: Yarn cache + - name: Cache Yarn dependencies uses: actions/cache@v2 with: - path: '**/node_modules' - key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} + path: | + node_modules + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- - - name: Yarn install - run: | - mkdir .yarncache - yarn install --cache-folder ./.yarncache --frozen-lockfile - rm -rf .yarncache - yarn cache clean + - name: Install dependencies + run: yarn install - name: Run tests run: yarn test