Skip to content

Commit

Permalink
chore: setup github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
facuspagnuolo committed Aug 12, 2023
1 parent f887f16 commit b7452be
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Setup

runs:
using: composite
steps:
- name: Install node
uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
- name: Cache
uses: actions/cache@v2
id: cache
with:
path: '**/node_modules'
key: yarn-v1-${{ hashFiles('**/yarn.lock') }}
- name: Install
if: steps.cache.outputs.cache-hit != 'true'
run: yarn --prefer-offline
shell: bash
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

env:
CI: true

on:
push:
branches: "*"
pull_request:
branches: "*"

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up environment
uses: ./.github/actions/setup
- name: Lint
run: yarn lint

build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up environment
uses: ./.github/actions/setup
- name: Build
run: yarn build:mainnet

0 comments on commit b7452be

Please sign in to comment.