1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-31 00:16:47 +01:00

chore: update setup-node task to activate yarn cache (#1661)

This commit is contained in:
Christopher Kolstad 2022-06-09 14:26:35 +02:00 committed by GitHub
parent 0f11a33e3a
commit 90b72f1162
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 64 additions and 68 deletions

View File

@ -27,16 +27,15 @@ jobs:
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn
- run: yarn lint
- run: yarn run test

View File

@ -27,16 +27,15 @@ jobs:
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn
- run: yarn run test:coverage
env:

View File

@ -5,7 +5,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
@ -17,7 +16,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn
- run: yarn lint
- run: yarn build

View File

@ -22,16 +22,15 @@ jobs:
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
--health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Tests on ${{ matrix.node-version }}
uses: ArtiomTr/jest-coverage-report-action@v2
with:

View File

@ -6,7 +6,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
@ -20,6 +19,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'
- run: |
yarn install --frozen-lockfile
- run: |