Skip to content

Commit

Permalink
chore: update ci scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Jan 20, 2025
1 parent 18dfe02 commit 4eb4811
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/audit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('meteor/yarn.lock') }}-${{ hashFiles('meteor/.meteor/release') }}
- name: Validate production dependencies for vulnerabilities and compatible licenses
run: |
corepack enable
yarn
cd meteor
yarn validate:prod-dependencies
Expand Down Expand Up @@ -55,6 +57,8 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('meteor/yarn.lock') }}-${{ hashFiles('meteor/.meteor/release') }}
- name: Validate production dependencies for vulnerabilities and compatible licenses
run: |
corepack enable
yarn
cd meteor
yarn run validate:all-dependencies
Expand Down Expand Up @@ -88,6 +92,8 @@ jobs:
node-version-file: ".node-version"
- name: Prepare Environment
run: |
corepack enable
cd packages
yarn install
env:
Expand Down Expand Up @@ -119,6 +125,8 @@ jobs:
node-version-file: ".node-version"
- name: Prepare Environment
run: |
corepack enable
cd packages
yarn install
env:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('yarn.lock', 'meteor/yarn.lock', 'meteor/.meteor/release', 'packages/yarn.lock') }}
- name: Prepare Environment
run: |
corepack enable
yarn config set cacheFolder /home/runner/lint-core-cache
yarn
yarn build:packages
Expand Down Expand Up @@ -73,6 +75,8 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('yarn.lock', 'meteor/yarn.lock', 'meteor/.meteor/release', 'packages/yarn.lock') }}
- name: Prepare Environment
run: |
corepack enable
yarn config set cacheFolder /home/runner/test-core-cache
yarn
yarn build:packages
Expand Down Expand Up @@ -174,6 +178,8 @@ jobs:
- name: Prepare Environment
if: steps.check-build-and-push.outputs.enable == 'true'
run: |
corepack enable
yarn install
- name: Build libs
if: steps.check-build-and-push.outputs.enable == 'true'
Expand Down Expand Up @@ -348,6 +354,8 @@ jobs:
- name: Build
if: steps.check-build-and-push.outputs.enable == 'true'
run: |
corepack enable
cd packages
yarn install
yarn lerna run --scope \*\*/${{ matrix.gateway-name }} --include-dependencies --stream build
Expand Down Expand Up @@ -455,6 +463,8 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('packages/yarn.lock') }}
- name: Prepare Environment
run: |
corepack enable
cd packages
yarn config set cacheFolder /home/runner/${{ matrix.package-name }}-cache
yarn install
Expand Down Expand Up @@ -524,6 +534,8 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('packages/yarn.lock') }}
- name: Prepare Environment
run: |
corepack enable
cd packages
yarn config set cacheFolder /home/runner/test-packages-cache
yarn install
Expand Down Expand Up @@ -556,6 +568,8 @@ jobs:
node-version-file: ".node-version"
- name: Prepare Environment
run: |
corepack enable
cd packages
yarn
env:
Expand All @@ -582,6 +596,8 @@ jobs:
node-version-file: ".node-version"
- name: Prepare Environment
run: |
corepack enable
cd packages
yarn
env:
Expand Down Expand Up @@ -622,6 +638,8 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('packages/yarn.lock') }}
- name: Prepare Environment
run: |
corepack enable
cd packages
yarn config set cacheFolder /home/runner/publish-docs-cache
yarn install
Expand Down Expand Up @@ -671,6 +689,8 @@ jobs:
node-version-file: ".node-version"
- name: Prepare Environment # have to run this first to make sure the semver lib is available
run: |
corepack enable
yarn config set cacheFolder /home/runner/release-libs-cache
cd packages
Expand Down Expand Up @@ -755,6 +775,8 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('yarn.lock', 'meteor/yarn.lock', 'meteor/.meteor/release', 'packages/yarn.lock') }}
- name: Prepare Environment
run: |
corepack enable
yarn config set cacheFolder /home/runner/check-for-multiple-library-versions-cache
yarn
env:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/prerelease-libs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
node-version-file: ".node-version"
- name: Prepare Environment
run: |
corepack enable
cd packages
yarn install
yarn lerna run --scope \*\*/${{ matrix.package-name }} --include-dependencies --stream build
Expand Down Expand Up @@ -65,6 +67,8 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Prepare Environment
run: |
corepack enable
cd packages
yarn install
yarn lerna run --scope \*\*/${{ matrix.package-name }} --include-dependencies --stream build
Expand Down Expand Up @@ -105,6 +109,8 @@ jobs:
- name: Prepare Environment
if: ${{ steps.do-publish.outputs.publish }}
run: |
corepack enable
cd packages
yarn install
env:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/sonar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('yarn.lock', 'meteor/yarn.lock', 'meteor/.meteor/release', 'packages/yarn.lock') }}
- name: Prepare Environment
run: |
corepack enable
yarn
yarn build:packages
env:
Expand Down

0 comments on commit 4eb4811

Please sign in to comment.