Skip to content

Commit

Permalink
ci: add pull request check workflow (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
Garfield550 authored Nov 7, 2023
1 parent b610a22 commit 3aa7fbc
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Pull Request Check
on:
pull_request:
paths-ignore:
- '**/*.md'
- LICENSE
- '**/*.gitignore'
- .editorconfig
- docs/**
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
check-latest: true
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm install -g npm && npm install
- name: Lint
run: npm run lint
- name: Build
run: npm run build

0 comments on commit 3aa7fbc

Please sign in to comment.