Skip to content

Commit

Permalink
CI Workflows for dApp and Website packages (#43)
Browse files Browse the repository at this point in the history
In this PR we add GitHub Actions workflows for dApp and Website
packages.

Depends on #42
Closes #24
  • Loading branch information
r-czajkowski authored Nov 23, 2023
2 parents 3929638 + 530bb86 commit 26b3b73
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/dapp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: dApp

on:
push:
branches:
- main
paths:
- "dapp/**"
pull_request:

defaults:
run:
working-directory: ./dapp

jobs:
dapp-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version-file: "dapp/.nvmrc"
cache: "yarn"
cache-dependency-path: "dapp/yarn.lock"

- name: Install Dependencies
run: yarn install --prefer-offline --frozen-lockfile

- name: Format
run: yarn format

dapp-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version-file: "dapp/.nvmrc"
cache: "yarn"
cache-dependency-path: "dapp/yarn.lock"

- name: Install Dependencies
run: yarn install --prefer-offline --frozen-lockfile

- name: Build
run: yarn build
50 changes: 50 additions & 0 deletions .github/workflows/website.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Website

on:
push:
branches:
- main
paths:
- "website/**"
pull_request:

defaults:
run:
working-directory: ./website

jobs:
website-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version-file: "website/.nvmrc"
cache: "yarn"
cache-dependency-path: "website/yarn.lock"

- name: Install Dependencies
run: yarn install --prefer-offline --frozen-lockfile

- name: Format
run: yarn format

website-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version-file: "website/.nvmrc"
cache: "yarn"
cache-dependency-path: "website/yarn.lock"

- name: Install Dependencies
run: yarn install --prefer-offline --frozen-lockfile

- name: Build
run: yarn build

0 comments on commit 26b3b73

Please sign in to comment.