Skip to content

fixed a bug

fixed a bug #7

Workflow file for this run

name: Hardhat Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
env:
PRIVATE_KEY: ${{env.PRIVATE_KEY}}

Check failure on line 12 in .github/workflows/hardhat-tests.yml

View workflow run for this annotation

GitHub Actions / Hardhat Tests

Invalid workflow file

The workflow is not valid. .github/workflows/hardhat-tests.yml (Line: 12, Col: 20): Unrecognized named-value: 'env'. Located at position 1 within expression: env.PRIVATE_KEY .github/workflows/hardhat-tests.yml (Line: 13, Col: 23): Unrecognized named-value: 'env'. Located at position 1 within expression: env.PINATA_API_KEY
PINATA_API_KEY: ${{env.PINATA_API_KEY}}
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 20 # You can specify your Node.js version here
- name: Install Dependencies
run: npm install
- name: Run Hardhat Tests
run: npx hardhat test