feat: add tenant creation fee #25
This file contains hidden or 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: Contract Test | |
on: | |
push: | |
paths: | |
- "contracts/**" | |
- ".github/workflows/contract-test.yaml" | |
pull_request: | |
paths: | |
- "contracts/**" | |
- ".github/workflows/contract-test.yaml" | |
permissions: | |
contents: read | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
env: | |
ENDPOINT_URL: ${{ vars.ENDPOINT_URL }} | |
NFT_OWNER: ${{ vars.NFT_OWNER }} | |
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} | |
ALCHEMY_KEY: ${{ secrets.ALCHEMY_KEY }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
run_install: false | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '22' | |
cache: 'pnpm' | |
cache-dependency-path: 'contracts/pnpm-lock.yaml' | |
- name: Install Dependencies | |
working-directory: ./contracts | |
run: pnpm install | |
- name: Set Hardhat Variables | |
working-directory: ./contracts | |
run: | | |
npx hardhat vars set ENDPOINT_URL "${{ vars.ENDPOINT_URL }}" | |
npx hardhat vars set PRIVATE_KEY "${{ secrets.PRIVATE_KEY }}" | |
npx hardhat vars set ALCHEMY_KEY "${{ secrets.ALCHEMY_KEY }}" | |
- name: Run Tests | |
working-directory: ./contracts | |
run: pnpm test |