Skip to content

Commit

Permalink
add github action validation file
Browse files Browse the repository at this point in the history
  • Loading branch information
ZheSun88 committed Sep 24, 2024
1 parent 8a2b418 commit fd81279
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Validation

on:
push:
branches:
- 'master'

jobs:
test:
name: Validation
runs-on: ubuntu-latest
timeout-minutes: 15

steps:
- name: Checkout Project Code
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
- name: Install dependencies and build
run: npm ci
- name: Test
run: npm test

0 comments on commit fd81279

Please sign in to comment.