Skip to content

Commit

Permalink
Add a github action to lint and build (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
SawyerHood authored Nov 13, 2023
1 parent 82543d5 commit 3e7d962
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build and Lint

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build-and-lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "20" # Specify the Node.js version

- name: Install dependencies
run: npm install

- name: Run build
run: npm run build

- name: Run lint
run: npm run lint

0 comments on commit 3e7d962

Please sign in to comment.