Skip to content

Commit

Permalink
Add GitHub Action config
Browse files Browse the repository at this point in the history
  • Loading branch information
forshtat committed Aug 14, 2024
1 parent 21c1bd7 commit f53de08
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build
on:
push:
branches:
- '*'
pull_request:
types: [opened, reopened, synchronize]

env:
FORCE_COLORS: 1

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/setup-node@v1
with:
node-version: '18'

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- uses: actions/checkout@v1
- uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- run: yarn install
- run: yarn run ci


2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ node_modules
# Hardhat Ignition default folder for deployments against a local node
ignition/deployments/chain-31337
/out/
/.idea/
/cache_forge/
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
"repository": "[email protected]:eth-infinitism/rip7560_contracts.git",
"author": "Alex Forshtat <[email protected]>",
"license": "MIT",
"scripts": {
"test-hardhat": "hardhat test",
"test-forge": "forge test",
"ci": "yarn test-hardhat && yarn test-forge"
},
"devDependencies": {
"@nomicfoundation/hardhat-chai-matchers": "^2.0.0",
"@nomicfoundation/hardhat-ethers": "^3.0.0",
Expand Down

0 comments on commit f53de08

Please sign in to comment.