-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (59 loc) · 1.78 KB
/
ci.action.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
58
59
60
61
62
name: CI Job
on:
pull_request:
types: [synchronize, opened, reopened]
push:
branches:
- master
jobs:
linter_job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
node-version: 14
- run: chmod +x "${GITHUB_WORKSPACE}/.github/scripts/build-file-linter.sh"
- run: '${GITHUB_WORKSPACE}/.github/scripts/build-file-linter.sh'
dot_only_linter_job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
node-version: 14
- run: chmod +x "${GITHUB_WORKSPACE}/.github/scripts/dot-only-test-linter.sh"
- run: '${GITHUB_WORKSPACE}/.github/scripts/dot-only-test-linter.sh'
eslint_linter_job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- run: node common/scripts/install-run-rush.js update
- run: node common/scripts/install-run-rush.js lint
prettier_linter_job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- run: node common/scripts/install-run-rush.js update
- run: node common/scripts/install-run-rush.js prettier
pr_job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- run: node common/scripts/install-run-rush.js update
- run: node common/scripts/install-run-rush.js test
automerge:
needs: [linter_job, dot_only_linter_job, eslint_linter_job, prettier_linter_job, pr_job]
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: fastify/github-action-merge-dependabot@v3