Fix corepack error and update Yarn to 3.7.0 #276
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
# cache: 'yarn' | |
- name: Execute build | |
run: | | |
corepack enable | |
yarn config set nodeLinker node-modules | |
yarn plugin import workspace-tools | |
yarn install --immutable | |
yarn -v | |
yarn format-check | |
yarn test | |
yarn package | |
- name: Build Docker image | |
working-directory: ./docker | |
run: | | |
docker build \ | |
--tag "gatlingcorp/enterprise-runner:latest" \ | |
. |