Skip to content

Commit

Permalink
Github action
Browse files Browse the repository at this point in the history
  • Loading branch information
cyri113 committed Jul 19, 2024
1 parent 7f9be7a commit e51d413
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 3 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI

on:
workflow_dispatch:
push:
branches:
- master
pull_request:

jobs:
test:
name: CI
runs-on: ubuntu-latest

steps:
- name: Check out the Repository
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'yarn'

- name: Install Dependencies
run: yarn install

- name: Clean
run: yarn clean

- name: Compile
run: yarn compile

- name: Check
run: yarn check

- name: Test
run: yarn test

- name: CI
run: yarn ci

- name: Coverage
run: yarn coverage
2 changes: 1 addition & 1 deletion contracts/Lock.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.26;
pragma solidity ^0.8.24;

// Uncomment this line to use console.log
// import "hardhat/console.sol";
Expand Down
2 changes: 1 addition & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import "@nomicfoundation/hardhat-toolbox-viem";
import "@nomiclabs/hardhat-solhint";

const config: HardhatUserConfig = {
solidity: "0.8.26",
solidity: "0.8.24",
};

export default config;
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"compile": "npx hardhat compile",
"check": "npx hardhat check",
"test": "npx hardhat test",
"coverage": "npx hardhat coverage",
"ci": "npx biome ci",
"format": "npx biome check --write"
}
}
}

0 comments on commit e51d413

Please sign in to comment.