1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00
lancedikson_bowser/.github/workflows/pull-request.yml

45 lines
1.1 KiB
YAML
Raw Normal View History

2023-11-13 09:11:28 +00:00
name: 'Pull Request'
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
2023-11-17 18:33:46 +00:00
node: [12.16.3]
2023-11-13 09:11:28 +00:00
name: Node ${{ matrix.node }}
steps:
- name: 'Checkout latest code'
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
2023-11-14 17:15:10 +00:00
run: npm ci --legacy-peer-deps
2023-11-13 09:11:28 +00:00
- name: Build
run: npm run build
- name: Run tests
run: npm run test
lint:
name: 'ESLint'
runs-on: ubuntu-latest
steps:
- name: Checkout latest code
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install dependencies
2023-11-14 17:16:49 +00:00
run: npm ci --legacy-peer-deps
2023-11-13 09:11:28 +00:00
- name: Run ESLint
run: npm run lint:check