Skip to content

Commit

Permalink
ci: use yarn v4
Browse files Browse the repository at this point in the history
Signed-off-by: Tomás Migone <[email protected]>
  • Loading branch information
tmigone committed Dec 1, 2023
1 parent 1f60a3e commit a811e55
Show file tree
Hide file tree
Showing 5 changed files with 139 additions and 146 deletions.
19 changes: 8 additions & 11 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,13 @@ runs:

steps:
- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
- name: Cache
uses: actions/cache@v3
id: cache
with:
path: '**/node_modules'
key: yarn-${{ hashFiles('**/yarn.lock') }}
- name: Install
node-version: 18
cache: 'yarn'
- name: Install modern Yarn
run: corepack enable && yarn set version berry
- name: Install dependencies
run: yarn --immutable
shell: bash
if: steps.cache.outputs.cache-hit != 'true'
- name: Build
run: yarn build
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up environment
uses: ./.github/actions/setup
- name: Build
run: yarn build
uses: ./.github/actions/setup
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ on:


jobs:
test:
test-ci:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up environment
uses: ./.github/actions/setup
- name: Run tests
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@ on:
pull_request: {}

jobs:
build:
test-e2e:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up environment
uses: ./.github/actions/setup
- name: Run e2e tests
Expand Down
Loading

0 comments on commit a811e55

Please sign in to comment.