Create pr.yml

This commit is contained in:
Aykut Saraç 2023-02-11 19:34:08 +03:00 committed by GitHub
parent daa6c974c7
commit 7f37e03fb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

25
.github/workflows/pr.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Verify Pull Request
on:
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm lint
- run: npm run build