chore: prevent abuse with prototype pollution #76
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: pull request checks | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Authenticate with private NPM package | |
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc | |
- name: setup-node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
cache: "npm" | |
cache-dependency-path: "**/package-lock.json" | |
- name: install | |
run: npm ci | |
- name: build | |
run: npm run build | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: build-artifacts | |
path: | | |
packages/core/dist | |
packages/sign-client/dist | |
packages/types/dist | |
packages/utils/dist | |
packages/web3wallet/dist | |
providers/ethereum-provider/dist | |
providers/signer-connection/dist | |
providers/universal-provider/dist | |
code_style: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
style-command: | |
- lint | |
- prettier | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Authenticate with private NPM package | |
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc | |
- name: setup-node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
cache: "npm" | |
cache-dependency-path: "**/package-lock.json" | |
- name: install | |
run: npm ci | |
- name: check | |
run: npm run ${{ matrix.style-command }} | |
test: | |
needs: [build, code_style] | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
test-prefix: | |
- packages/sign-client | |
- packages/core | |
- packages/web3wallet | |
- packages/utils | |
env: | |
TEST_RELAY_URL: ${{ secrets.TEST_RELAY_URL }} | |
TEST_PROJECT_ID: ${{ secrets.TEST_PROJECT_ID }} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Authenticate with private NPM package | |
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc | |
- name: setup-node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
cache: "npm" | |
cache-dependency-path: "**/package-lock.json" | |
- name: install | |
run: npm ci | |
- uses: actions/download-artifact@v3 | |
with: | |
name: build-artifacts | |
- run: npm run test --prefix=${{ matrix.test-prefix }} |