Skip to content

Commit

Permalink
add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumedebavelaere committed Apr 4, 2024
1 parent e09e8de commit 85e6eab
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI

# Controls when the workflow will run
on: push

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.0.0

- name: Setup yarn
run: npm install -g yarn

- name: Install Dependencies
run: yarn install

# Compile
- name: Compile
run: yarn hardhat compile

# Solhint
- name: Linter
run: yarn hardhat check

# Tests
- name: Test
run: REPORT_GAS=true yarn hardhat test

# Coverage
- name: Coverage
id: coverage
run: yarn hardhat coverage

- name: Coveralls
uses: coverallsapp/github-action@master
with:
path-to-lcov: ./backend/coverage/lcov.info
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 85e6eab

Please sign in to comment.