Skip to content

Commit

Permalink
update github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
shan8851 committed Sep 19, 2024
1 parent bff1ae9 commit a6acca5
Showing 1 changed file with 33 additions and 21 deletions.
54 changes: 33 additions & 21 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,14 @@ name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

env:
FOUNDRY_PROFILE: ci

jobs:
check:
strategy:
fail-fast: true

name: Foundry project
smart-contract-checks:
name: Smart Contract Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -25,21 +21,37 @@ jobs:
with:
version: nightly

- name: Show Forge version
run: |
forge --version
- name: Run Forge fmt
run: |
forge fmt --check
id: fmt
run: forge fmt --check
working-directory: ./contracts

- name: Run Forge build
run: |
forge build --sizes
id: build
run: forge build --sizes
working-directory: ./contracts

- name: Run Forge tests
run: |
forge test -vvv
id: test
run: forge test -vvv
working-directory: ./contracts

frontend-checks:
name: Frontend Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install dependencies
run: npm ci
working-directory: ./frontend

- name: Run linter
run: npm run lint
working-directory: ./frontend

- name: Build frontend
run: npm run build
working-directory: ./frontend

0 comments on commit a6acca5

Please sign in to comment.