Skip to content

Commit

Permalink
chore: add .github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
adamazad committed Jun 30, 2024
1 parent dc5435e commit 6bd38c7
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
44 changes: 44 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI
on:
push:
branches: ['main', 'development']
pull_request:
types: [opened, synchronize]
jobs:
ci:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: pnpm/action-setup@v2
with:
version: latest
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- name: Setup Foundry Toolchain
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install dependencies
run: pnpm i
- name: Codegen
run: npx turbo codegen
- name: Build
run: npx turbo build
# These are dummy variables to satisfy next.js build
env:
REACT_APP_ALCHEMY_KEY: test
MONGODB_URI: test
WALLET_LABELS_API_KEY: test
ETHERSCAN_API_KEY_ETHEREUM: test
ETHERSCAN_API_KEY_GNOSIS: test
- name: Lint
run: pnpm lint
- name: Test
run: pnpm test

0 comments on commit 6bd38c7

Please sign in to comment.