From 262497aa3cf4768c7f2a75886c6a85e5b4166591 Mon Sep 17 00:00:00 2001 From: Mauro Piazza Date: Fri, 21 Jun 2024 16:06:20 +0200 Subject: [PATCH] chore: add ci workflow --- .github/workflows/ci.yml | 37 +++++++++++++++++-------------------- 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fbe7307b..f5f384de 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,29 +1,26 @@ -name: CI +name: test on: push: - branches: - - master + branches: [master] pull_request: env: FOUNDRY_PROFILE: ci jobs: - run-ci: + yarn-ci: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: Install Foundry - uses: foundry-rs/foundry-toolchain@v1 - with: - version: nightly - - - name: Install deps - run: forge install - - - name: Check gas snapshots - run: forge snapshot --check - - - name: Run tests - run: forge test + steps: + - name: 'Setup Node.js' + uses: actions/setup-node@v4 + with: + node-version: 18 + cache: 'yarn' + - name: 'Install' + run: yarn install + - name: 'Build' + run: yarn build + - name: 'Lint' + run: yarn lint + - name: 'Test' + run: yarn test \ No newline at end of file