Skip to content

Commit

Permalink
[ARC-204] set up CI for contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
eyqs committed Sep 13, 2024
1 parent 954db63 commit 29c57bd
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 53 deletions.
9 changes: 9 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## What's new in this PR?

In bullet point format, please describe what's new in this PR.

## Why?

What problem does this solve?
Why is this important?
What's the context?
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: test
name: Continuous Integration

on: workflow_dispatch
on:
push:
branches:
- main
pull_request:
branches:
- main

env:
FOUNDRY_PROFILE: ci
Expand All @@ -10,7 +16,7 @@ jobs:
strategy:
fail-fast: true

name: Foundry project
name: Build and Test Contracts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
22 changes: 22 additions & 0 deletions nest/foundry.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
[profile.default]
solc = "0.8.25"
evm_version = "cancun"
src = "src"
out = "out"
libs = ["lib"]
ffi = true
ast = true
build_info = true
extra_output = ["storageLayout"]

[fmt]
single_line_statement_blocks = "multi"
multiline_func_header = "params_first"
sort_imports = true
contract_new_lines = true
bracket_spacing = true
int_types = "long"
quote_style = "double"
number_underscore = "thousands"
wrap_comments = true

# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options

remappings = [
"@openzeppelin/contracts/=lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/",
"@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
]
12 changes: 0 additions & 12 deletions nest/script/Counter.s.sol

This file was deleted.

14 changes: 0 additions & 14 deletions nest/src/Counter.sol

This file was deleted.

24 changes: 0 additions & 24 deletions nest/test/Counter.t.sol

This file was deleted.

0 comments on commit 29c57bd

Please sign in to comment.