Development #283
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/kentcdodds/kentcdodds.com/blob/main/.github/workflows/deployment.yml | |
name: Code Check | |
env: | |
NEXT_PUBLIC_ENV: development | |
on: | |
push: | |
branches: | |
- main | |
- development | |
pull_request: {} | |
jobs: | |
lintClient: | |
name: Client - ESLint | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛑 Cancel Previous Runs | |
uses: styfle/[email protected] | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v2 | |
- name: ⎔ Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: 📥 Download deps | |
uses: bahmutov/npm-install@v1 | |
- name: 🔬 Lint | |
run: yarn lint:strict | |
typecheckClient: | |
name: Client - ʦ TypeScript | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛑 Cancel Previous Runs | |
uses: styfle/[email protected] | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v2 | |
- name: ⎔ Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: 📥 Download deps | |
uses: bahmutov/npm-install@v1 | |
- name: 📥 Download deps - Hardhat | |
uses: bahmutov/npm-install@v1 | |
with: | |
working-directory: ./hardhat | |
- name: 🃏 Compile SmartContract | |
run: yarn compile:force | |
working-directory: ./hardhat | |
- name: 🔎 Type check | |
run: yarn typecheck | |
prettierClient: | |
name: Client - 💅 Prettier | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛑 Cancel Previous Runs | |
uses: styfle/[email protected] | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v2 | |
- name: ⎔ Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: 📥 Download deps | |
uses: bahmutov/npm-install@v1 | |
- name: 🔎 Type check | |
run: yarn format:check | |
testClient: | |
name: Client - 🃏 Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛑 Cancel Previous Runs | |
uses: styfle/[email protected] | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v2 | |
- name: ⎔ Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: 📥 Download deps | |
uses: bahmutov/npm-install@v1 | |
- name: 📥 Download deps - Hardhat | |
uses: bahmutov/npm-install@v1 | |
with: | |
working-directory: ./hardhat | |
- name: 🃏 Compile SmartContract | |
run: yarn compile:force | |
working-directory: ./hardhat | |
- name: 🃏 Run jest | |
run: yarn test | |
prettierSmartContract: | |
name: SmartContract - 💅 Prettier | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./hardhat | |
steps: | |
- name: 🛑 Cancel Previous Runs | |
uses: styfle/[email protected] | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v2 | |
- name: ⎔ Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: 📥 Download deps | |
uses: bahmutov/npm-install@v1 | |
with: | |
working-directory: ./hardhat | |
- name: 🔎 Type check | |
run: yarn format:check | |
working-directory: ./hardhat | |
testSmartContract: | |
name: SmartContract - 🃏 Test | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./hardhat | |
steps: | |
- name: 🛑 Cancel Previous Runs | |
uses: styfle/[email protected] | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v2 | |
- name: ⎔ Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: 📥 Download deps | |
uses: bahmutov/npm-install@v1 | |
with: | |
working-directory: ./hardhat | |
- name: 🃏 Run tests | |
run: yarn compile | |
working-directory: ./hardhat |