jsoncrack.com/.github/workflows/pull-request.yml

26 lines
532 B
YAML
Raw Normal View History

2023-02-11 19:36:47 +03:00
name: Verify Pull Request
2023-02-11 19:25:38 +03:00
on:
pull_request:
2023-02-11 19:36:47 +03:00
branches: [ "main" ]
2023-02-11 19:25:38 +03:00
jobs:
build:
2023-02-11 19:36:47 +03:00
2023-02-11 19:25:38 +03:00
runs-on: ubuntu-latest
2023-02-11 19:36:47 +03:00
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2023-02-11 19:25:38 +03:00
steps:
2023-02-11 19:36:47 +03:00
- 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