Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pawurb committed Jan 4, 2024
1 parent 33e4812 commit 7faaf50
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup
uses: actions/setup-node@v3
with:
node-version: '18.x'
- run: npm i
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Run Linter
run: npm run lint
- name: Hardhat config
run: mv hardhat.config.ts.ci hardhat.config.ts
- name: Run Compile
run: npx hardhat compile
- name: Run node and tests
run: anvil & sleep 2 && npx hardhat test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Locker - provides a way to lock and hold your ETH, ERC20 or ERC721 in a smart contract
# Locker - provides a way to lock and hold your ETH or ERC20 in a smart contract [![GH Actions](https://github.com/pawurb/Locker/actions/workflows/ci.yml/badge.svg)](https://github.com/pawurb/Locker/actions)

**This is a BETA software that has not been audited for security. Incorrectly using these smart contracts can result in irreversible loss of your funds. USE AT YOUR OWN RISK!**

Expand Down
16 changes: 16 additions & 0 deletions hardhat.config.ts.ci
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";

const config: HardhatUserConfig = {
solidity: {
version: "0.8.17",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
};

export default config;

0 comments on commit 7faaf50

Please sign in to comment.