Skip to content

Commit

Permalink
add PR GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
andrlime committed Nov 7, 2024
1 parent 9a5405f commit 0973968
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Website Checks

on:
pull_request:
branches:
- main
- staging
push:
branches:
- main
- staging

jobs:
lint:
name: Check formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Install dependencies
run: npm ci
- name: Check formatting with Prettier
run: npm run lint:prettier
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Install dependencies
run: npm ci
- name: Build website
run: npm run build

0 comments on commit 0973968

Please sign in to comment.