Skip to content

ci-updated

ci-updated #2

Workflow file for this run

name: Test Suite

Check failure on line 1 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax
on:
pull_request:
branches: [master]
jobs:
common:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Use Node.js 16.15.1
uses: actions/setup-node@v1
with:
node-version: 16.15.1
- name: Cache Node Modules
id: cache-node-modules
uses: actions/cache@v2
with:
path: 'node_modules'
key: node_modules-${{ hashFiles('package-lock.json') }}
- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci
linting:
name: Linting Checks
steps:
- <<: *common
- name: Run Linting
run: npm run lint
tests:
name: Smart Contract Tests
env:
ACCOUNT_PRIVATE_KEY: ${{ secrets.ACCOUNT_PRIVATE_KEY }}
steps:
- <<: *common
- name: Run Tests
run: npx hardhat test