-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (56 loc) · 1.81 KB
/
pr-actions.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# AUTOGENERATED by workflow-preprocessor.js from ../.github/workflow-templates/pr-actions.yml
name: Lint and Unit Test
'on':
- pull_request
jobs:
lint_and_unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: '▶️ Setup checkout: '
- name: "\U0001F53D Start setup [changed-files]"
run: echo "Setting something up"
- name: Get All Changed Files
uses: jaredly/[email protected]
id: changed
with:
format: json
absolute: true
- uses: allenevans/[email protected]
with:
ALL_CHANGED_FILES: '${{ steps.changed.outputs.added_modified }}'
- name: "\U0001F53C Finished setup [changed-files]"
run: echo "Finished setting it up"
- run: yarn
name: '▶️ Setup yarn: '
- name: Run eslint
uses: Khan/eslint-action@main
with:
eslint-lib: ./node_modules/eslint
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
- name: Run jest tests
uses: Khan/jest-action@main
with:
jest-bin: ./node_modules/.bin/jest
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
- name: Run jest coverage
uses: Khan/jest-coverage-action@main
with:
jest-bin: ./node_modules/.bin/jest
coverage-data-path: ./coverage/coverage-final.json
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
- name: Run flow
uses: Khan/flow-action@main
with:
flow-bin: ./node_modules/.bin/flow
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
- name: Run flow coverage
uses: Khan/flow-coverage-action@main
with:
flow-bin: ./node_modules/.bin/flow
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'