Skip to content

Commit

Permalink
Update CI for lint, formatting, testing & coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
remedcu committed Feb 11, 2024
1 parent dda7fa9 commit 1cd287c
Showing 1 changed file with 29 additions and 8 deletions.
37 changes: 29 additions & 8 deletions .github/workflows/node.js.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
name: Splitter-CI
on: [push, pull_request]

jobs:
build:
lint:
runs-on: ubuntu-latest

steps:
Expand All @@ -20,6 +15,32 @@ jobs:
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: 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
Expand Down

0 comments on commit 1cd287c

Please sign in to comment.