Skip to content

Commit

Permalink
chore: Update yarn to v4 and add Yarn v4 installation step
Browse files Browse the repository at this point in the history
- Update the yarn version to v4 in the dependencies setup action.yml file
- Add a new step to install Yarn v4 using corepack in the dependencies setup action.yml file
- Update the lint and type-check commands in the boilerplate-checks.yml file to use the correct yarn scripts
- Add a new step to run Prettier code formatting in the boilerplate-checks.yml file
  • Loading branch information
JeremyDolle committed Oct 8, 2024
1 parent 14c9153 commit e5c9132
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/actions/deps-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ runs:
node-version: '20.x'
cache: 'yarn'
cache-dependency-path: ${{ inputs.working_directory }}/yarn.lock
- name: Install Yarn v4
shell: bash
run: corepack enable && corepack prepare [email protected] --activate
- name: Install dependencies
run: yarn install --frozen-lockfile
shell: bash
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/boilerplate-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@ jobs:
with:
working_directory: ./template
- name: Run Eslint
run: yarn lint
run: yarn lint:coventions
working-directory: ./template
- name: Run Prettier
run: yarn lint:code-format
working-directory: ./template
- name: Run Typescript check
run: yarn type-check
run: yarn lint:type-check
working-directory: ./template
- name: Run Jest tests
run: yarn test
Expand Down

0 comments on commit e5c9132

Please sign in to comment.