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

25 lines
545 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:
runs-on: ubuntu-latest
2023-02-11 19:36:47 +03:00
strategy:
matrix:
2023-02-11 19:38:44 +03:00
node-version: [16.x]
2023-02-11 19:36:47 +03:00
# 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'
2023-02-11 19:41:16 +03:00
- run: npm install
2023-02-11 19:39:17 +03:00
- run: npm run lint
2023-02-11 19:36:47 +03:00
- run: npm run build