Merge branch 'dev' into setup-pipeline

This commit is contained in:
moebius
2025-02-19 14:45:41 +01:00
committed by GitHub
6 changed files with 44 additions and 78 deletions

View File

@@ -65,28 +65,8 @@ jobs:
node-version: 20.x
cache: "yarn"
- name: Setup .npmrc file
run: |
echo "@defi-wonderland:registry=https://npm.pkg.github.com" > .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.PKG_REGISTRY_TOKEN }}" >> .npmrc
working-directory: .
- name: Install root dependencies
- name: Install dependencies
run: yarn --frozen-lockfile --network-concurrency 1
working-directory: .
- name: Build SDK
run: |
yarn build
chmod +x ./scripts/copy_circuits.sh
bash ./scripts/copy_circuits.sh
working-directory: packages/sdk
- name: Link SDK
run: |
cd ../sdk && yarn link
cd ../contracts && yarn link "@defi-wonderland/privacy-pool-core-sdk"
shell: bash
- name: Precompile
run: yarn build
@@ -116,11 +96,6 @@ jobs:
node-version: 20.x
cache: "yarn"
- name: Setup .npmrc file
run: |
echo "@defi-wonderland:registry=https://npm.pkg.github.com" > .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.PKG_REGISTRY_TOKEN }}" >> .npmrc
- name: Install dependencies
run: yarn --frozen-lockfile --network-concurrency 1
@@ -137,11 +112,11 @@ jobs:
with:
submodules: recursive
- name: Setup .npmrc file
run: |
echo "@defi-wonderland:registry=https://npm.pkg.github.com" > .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.PKG_REGISTRY_TOKEN }}" >> .npmrc
working-directory: .
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "yarn"
- name: Install dependencies
run: yarn --frozen-lockfile --network-concurrency 1
@@ -165,15 +140,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20.x
# cache: "yarn"
- name: Install Yarn
run: npm install -g yarn
- name: Setup .npmrc file
run: |
echo "@defi-wonderland:registry=https://npm.pkg.github.com" > .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.PKG_REGISTRY_TOKEN }}" >> .npmrc
cache: "yarn"
- name: Install dependencies
run: yarn --frozen-lockfile --network-concurrency 1

View File

@@ -28,10 +28,14 @@ jobs:
with:
fetch-depth: 1
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "yarn"
- name: Install dependencies
run: yarn --frozen-lockfile --network-concurrency 1
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run Build
run: yarn build
@@ -51,15 +55,14 @@ jobs:
with:
fetch-depth: 1
- name: Setup .npmrc file
run: |
echo "@defi-wonderland:registry=https://npm.pkg.github.com" > .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.PKG_REGISTRY_TOKEN }}" >> .npmrc
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "yarn"
- name: Install dependencies
run: yarn install --frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run tests with coverage
run: yarn test:cov

View File

@@ -27,6 +27,12 @@ jobs:
with:
fetch-depth: 1
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "yarn"
- name: Install dependencies
run: yarn --frozen-lockfile --network-concurrency 1
@@ -45,10 +51,11 @@ jobs:
with:
fetch-depth: 1
- name: Setup .npmrc file
run: |
echo "@defi-wonderland:registry=https://npm.pkg.github.com" > .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.PKG_REGISTRY_TOKEN }}" >> .npmrc
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "yarn"
- name: Install dependencies
run: yarn install --frozen-lockfile