Skip to content

Merge pull request #58 from Harvtronix/dependabot/npm_and_yarn/pretti… #188

Merge pull request #58 from Harvtronix/dependabot/npm_and_yarn/pretti…

Merge pull request #58 from Harvtronix/dependabot/npm_and_yarn/pretti… #188

Workflow file for this run

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@v4
- name: Setup Node 🏗️
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: npm
- name: Install Node Modules 🔧
run: npm install
- name: Build 🔨
run: npm run build
#
# Make sure it lints and formats without errors
#
lint-and-format:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Setup Node 🏗️
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: npm
- name: Install Node Modules 🔧
run: npm install
- name: Lint 👀
run: npm run lint
- name: Format 👀
run: npm run format
#
# Make sure all tests pass
#
test:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Setup Node 🏗️
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: npm
- name: Install Node Modules 🔧
run: npm install
- name: Test 🧪
run: npm run test