Skip to content

Commit

Permalink
use --immutable for yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
imaksp committed Feb 15, 2024
1 parent 241f7ad commit 2b9b78d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
- run: yarn install --frozen-lockfile
- run: yarn install --immutable
- name: Run lint
run: yarn run --silent lint

Expand All @@ -56,7 +56,7 @@ jobs:
path: '**/node_modules'
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}

- run: yarn install --frozen-lockfile
- run: yarn install --immutable
- name: Run tests
run: yarn run --silent test:unit --coverage
- name: Upload coverage to Codecov
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
path: '**/node_modules'
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}

- run: yarn install --frozen-lockfile
- run: yarn install --immutable
- name: Build
run: yarn build
- name: Run test
Expand Down Expand Up @@ -187,7 +187,7 @@ jobs:
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
- run: yarn install --frozen-lockfile
- run: yarn install --immutable
- uses: ./.github/actions/run-e2e-tests
with:
dbOptions: '--dbclient=sqlite --dbfile=./tmp/data.db'
Expand Down Expand Up @@ -216,7 +216,7 @@ jobs:
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}
- run: yarn install --frozen-lockfile
- run: yarn install --immutable
- uses: ./.github/actions/run-e2e-tests
with:
dbOptions: '--dbclient=mongo --dbhost=localhost --dbport=27017 --dbname=strapi_test'

0 comments on commit 2b9b78d

Please sign in to comment.