Skip to content

Commit

Permalink
Add CI workflow on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
navzam committed Aug 17, 2024
1 parent a0cd2d1 commit 5d8f3c5
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: CI

on:
pull_request:
branches: [ main ]

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
path: checkout-prefix
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install dependencies
run: npm install
working-directory: checkout-prefix
- name: Build
run: npm run build
working-directory: checkout-prefix
- name: Run linter
run: npm run lint
working-directory: checkout-prefix

0 comments on commit 5d8f3c5

Please sign in to comment.