File tree Expand file tree Collapse file tree 4 files changed +47
-11
lines changed Expand file tree Collapse file tree 4 files changed +47
-11
lines changed Original file line number Diff line number Diff line change
1
+ name : autofix.ci
2
+
3
+ on :
4
+ pull_request :
5
+ permissions :
6
+ contents : read
7
+
8
+ jobs :
9
+ autofix :
10
+ runs-on : ubuntu-latest
11
+ env :
12
+ PUPPETEER_SKIP_DOWNLOAD : ' true'
13
+ steps :
14
+ - uses : actions/checkout@v3
15
+
16
+ - name : Install pnpm
17
+ uses : pnpm/action-setup@v2
18
+
19
+ - name : Set node version to 18
20
+ uses : actions/setup-node@v3
21
+ with :
22
+ node-version : 18
23
+ cache : pnpm
24
+
25
+ - run : pnpm install
26
+
27
+ - name : Run eslint
28
+ run : pnpm run lint --fix
29
+
30
+ - name : Run prettier
31
+ run : pnpm run format
32
+
33
+ - uses : autofix-ci/action@8caa572fd27b0019a65e4c695447089c8d3138b9
Original file line number Diff line number Diff line change 14
14
unit-test :
15
15
runs-on : ubuntu-latest
16
16
if : github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
17
+ env :
18
+ PUPPETEER_SKIP_DOWNLOAD : ' true'
17
19
steps :
18
20
- uses : actions/checkout@v3
19
21
26
28
node-version : 18
27
29
cache : ' pnpm'
28
30
29
- - name : Skip Puppeteer download
30
- run : echo "PUPPETEER_SKIP_DOWNLOAD=1" >> $GITHUB_ENV
31
-
32
31
- run : pnpm install
33
32
34
33
- name : Run unit tests
37
36
unit-test-windows :
38
37
runs-on : windows-latest
39
38
if : github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
39
+ env :
40
+ PUPPETEER_SKIP_DOWNLOAD : ' true'
40
41
steps :
41
42
- uses : actions/checkout@v3
42
43
49
50
node-version : 18
50
51
cache : ' pnpm'
51
52
52
- - name : Skip Puppeteer download
53
- run : echo "PUPPETEER_SKIP_DOWNLOAD=1" >> $env:GITHUB_ENV
54
-
55
53
- run : pnpm install
56
54
57
55
- name : Run compiler unit tests
89
87
lint-and-test-dts :
90
88
runs-on : ubuntu-latest
91
89
if : github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
90
+ env :
91
+ PUPPETEER_SKIP_DOWNLOAD : ' true'
92
92
steps :
93
93
- uses : actions/checkout@v3
94
94
@@ -101,9 +101,6 @@ jobs:
101
101
node-version : 18
102
102
cache : ' pnpm'
103
103
104
- - name : Skip Puppeteer download
105
- run : echo "PUPPETEER_SKIP_DOWNLOAD=1" >> $GITHUB_ENV
106
-
107
104
- run : pnpm install
108
105
109
106
- name : Run eslint
Original file line number Diff line number Diff line change 11
11
permissions :
12
12
contents : read
13
13
14
+ env :
15
+ PUPPETEER_SKIP_DOWNLOAD : ' true'
16
+
14
17
jobs :
15
18
upload :
16
19
runs-on : ubuntu-latest
28
31
cache : pnpm
29
32
30
33
- name : Install dependencies
31
- run : PUPPETEER_SKIP_DOWNLOAD=1 pnpm install
34
+ run : pnpm install
32
35
33
36
- run : pnpm run size
34
37
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ permissions:
11
11
pull-requests : write
12
12
issues : write
13
13
14
+ env :
15
+ PUPPETEER_SKIP_DOWNLOAD : ' true'
16
+
14
17
jobs :
15
18
size-report :
16
19
runs-on : ubuntu-latest
30
33
cache : pnpm
31
34
32
35
- name : Install dependencies
33
- run : PUPPETEER_SKIP_DOWNLOAD=1 pnpm install
36
+ run : pnpm install
34
37
35
38
- name : Download PR number
36
39
uses : dawidd6/action-download-artifact@v2
You can’t perform that action at this time.
0 commit comments