Skip to content

add basic ci

add basic ci #6

Workflow file for this run

name: General CI
on:
push:
branches:
- dev
paths-ignore:
- "**/README.md"
pull_request:
branches:
- dev
types:
- opened
- reopened
- synchronize
- ready_for_review
jobs:
set-node:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set Node version
uses: actions/setup-node@v4
with:

Check failure on line 26 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 line 26
node-version: 18
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install deps
run: |
npm install
- name: Fmt check
run: |
npm run fmt-check
compile:
runs-on: ubuntu-latest
needs:
- fmt
steps:
- uses: actions/checkout@v4
- name: Compile solidity
run: |
npm run compile
hardhat-test:
runs-on: ubuntu-latest
needs:
- compile
- uses: actions/checkout@v4
- name: Run hardhat test
run: |
npm run test:all