Skip to content

feat(protocol-contracts): add ConfidentialWrapperV2 task and tests (#… #399

feat(protocol-contracts): add ConfidentialWrapperV2 task and tests (#…

feat(protocol-contracts): add ConfidentialWrapperV2 task and tests (#… #399

# Run tests
name: contracts-staking-tests
on:
pull_request:
paths:
- '.github/workflows/contracts-staking-hardhat-tests.yml'
- 'contracts/staking/**'
push:
branches:
- main
workflow_dispatch:
permissions: {}
concurrency:
group: ci-contracts-staking-tests-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
tests:
name: contracts-staking-tests/tests (bpr)
runs-on: ubuntu-latest
permissions:
contents: 'read' # Required to checkout repository code
steps:
- name: Checkout project
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: 'false'
- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20.x
cache: npm
cache-dependency-path: contracts/staking/package-lock.json
- name: Install dependencies
working-directory: contracts/staking
run: npm ci
- name: Run lint
working-directory: contracts/staking
run: npm run lint
- name: Run compile
working-directory: contracts/staking
run: npm run compile
- name: Run unit tests
working-directory: contracts/staking
run: make test
- name: Run tasks tests
working-directory: contracts/staking
run: make test-tasks