Skip to content

Commit

Permalink
ci(backend): build
Browse files Browse the repository at this point in the history
refs #1
  • Loading branch information
jo-elimu committed Jun 25, 2024
1 parent 9044018 commit 143a237
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: backend

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

jobs:
build:

runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [18.x, 20.x]

defaults:
run:
working-directory: backend

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: backend/package-lock.json
- run: npm install
- run: npx hardhat clean
- run: npx hardhat compile
- run: npx hardhat test
- run: npx hardhat coverage
- run: npx istanbul check-coverage --lines 80
3 changes: 3 additions & 0 deletions backend/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import "@nomicfoundation/hardhat-toolbox";

const config: HardhatUserConfig = {
solidity: "0.8.24",
gasReporter: {
enabled: true
}
};

export default config;

0 comments on commit 143a237

Please sign in to comment.