Skip to content

Commit

Permalink
Merge pull request #159 from BlockchainAsset/CI-update
Browse files Browse the repository at this point in the history
Update CI for lint, formatting, testing & coverage
  • Loading branch information
remedcu authored Feb 11, 2024
2 parents dda7fa9 + d6a4bfc commit 7bb6601
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 31 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Splitter-CI
on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Installing Packages
run: yarn install --frozen-lockfile
- name: Checking Formatting
run: yarn lint && yarn prettier-check

test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Installing Packages
run: yarn install --frozen-lockfile
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Testing
run: yarn test

coverage:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Installing Packages
run: yarn install --frozen-lockfile
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Code Coverage
run: yarn coverage
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./lcov.info
31 changes: 0 additions & 31 deletions .github/workflows/node.js.yml

This file was deleted.

0 comments on commit 7bb6601

Please sign in to comment.