Skip to content

Commit

Permalink
Add action to check pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
ahocevar committed Apr 21, 2024
1 parent 3f9778f commit 98cd598
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/pullrequest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build and Test

on:
pull_request:
branches:
- main

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

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

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test

- name: Build
run: npm run build
4 changes: 4 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,9 @@
"vite": "^5.2.8",
"vite-plugin-vuetify": "^2.0.3",
"vue-tsc": "^2.0.13"
},
"engines": {
"node": "=20",
"npm": ">=10"
}
}

0 comments on commit 98cd598

Please sign in to comment.