diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..666c47f --- /dev/null +++ b/.env.example @@ -0,0 +1,5 @@ +# Infura RPC API Key (https://infura.io) +INFURA_API_KEY=your_infura_api_key_here + +# Private key of the deployer wallet (NO 0x prefix) +PRIVATE_KEY=your_private_key_here diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d0cf5fb --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + name: Hardhat Tests + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '22' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Compile contracts + run: npx hardhat compile + + - name: Run tests + run: npx hardhat test