diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 50fa583..a415c40 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -21,6 +21,11 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - + name: Enable corepack + run: | + corepack enable + yarn --version - name: Set up Node uses: actions/setup-node@v4 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3be455b..8283b1a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -57,6 +57,11 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - + name: Enable corepack + run: | + corepack enable + yarn --version - name: Setup Node uses: actions/setup-node@v4 @@ -101,6 +106,18 @@ jobs: - name: Expose GitHub Runtime uses: crazy-max/ghaction-github-runtime@v3 + - + # FIXME: Needs to setup node twice on Windows due to a bug with runner + name: Setup Node + if: startsWith(matrix.os, 'windows') + uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + - + name: Enable corepack + run: | + corepack enable + yarn --version - name: Setup Node uses: actions/setup-node@v4 diff --git a/.yarn/releases/yarn-3.6.3.cjs b/.yarn/releases/yarn-3.6.3.cjs deleted file mode 100644 index 9837c30..0000000 Binary files a/.yarn/releases/yarn-3.6.3.cjs and /dev/null differ diff --git a/.yarnrc.yml b/.yarnrc.yml index 25580bf..4bff0e6 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -1,6 +1,8 @@ logFilters: - code: YN0013 level: discard + - code: YN0019 + level: discard - code: YN0076 level: discard @@ -11,5 +13,3 @@ npmAuthToken: "${NODE_AUTH_TOKEN:-fallback}" plugins: - path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs spec: "@yarnpkg/plugin-interactive-tools" - -yarnPath: .yarn/releases/yarn-3.6.3.cjs diff --git a/dev.Dockerfile b/dev.Dockerfile index 2890078..1d002e1 100644 --- a/dev.Dockerfile +++ b/dev.Dockerfile @@ -20,8 +20,13 @@ ARG BUILDX_VERSION=0.14.0 FROM node:${NODE_VERSION}-alpine AS base RUN apk add --no-cache cpio findutils git -RUN yarn config set --home enableTelemetry 0 WORKDIR /src +RUN --mount=type=bind,target=.,rw \ + --mount=type=cache,target=/src/.yarn/cache <