-
Notifications
You must be signed in to change notification settings - Fork 13
40 lines (38 loc) · 1.06 KB
/
pull-request.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Pull request
on: [pull_request]
jobs:
continuous-integration:
name: Continuous Integration
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
registry-url: 'https://registry.npmjs.org'
- name: Install NPM dependencies
run: npm ci
- name: Commit lint
run: ./node_modules/.bin/commitlint --from $(git merge-base --fork-point master) --verbose
- name: Lint
run: npm run lint
- name: Lint
uses: wearerequired/[email protected]
with:
continue_on_error: false
auto_fix: false
neutral_check_on_warning: false
eslint: true
eslint_args: src/**/*.ts
eslint_extensions: ts
prettier: true
prettier_args: src/**/*.ts
prettier_extensions: ts
- name: Test
run: |
npm test
npm run codecov