Skip to content

Commit

Permalink
Merge pull request #42 from hytech-racing/build-on-pr
Browse files Browse the repository at this point in the history
add gh action to make sure repo is buildable on pr
  • Loading branch information
ryanlau authored Oct 24, 2024
2 parents c739949 + 9779ec8 commit a8d1d31
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build-on-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build on Pull Request

on:
pull_request:
branches: ['main']

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20' # Use the Node.js version you're working with
cache: 'npm' # Use the Node.js version you're working with

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

0 comments on commit a8d1d31

Please sign in to comment.