Merge pull request #49 from Harvtronix/dependabot/npm_and_yarn/braces… #152
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
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
# | |
# Make sure it builds without errors | |
# | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
- name: Setup Node 🏗️ | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
cache: npm | |
- name: Install Node Modules 🔧 | |
run: npm install | |
- name: Build 🔨 | |
run: npm --workspace packages/react-substate run build | |
# | |
# Make sure it lints without errors | |
# | |
ci-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
- name: Setup Node 🏗️ | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
cache: npm | |
- name: Install Node Modules 🔧 | |
run: npm install | |
- name: Lint 👀 | |
run: npm run lint |