1
+ # File managed by web3-bot. DO NOT EDIT.
2
+ # See https://github.com/protocol/.github/ for details.
3
+
1
4
name : test & maybe release
2
5
on :
3
6
push :
4
7
branches :
5
- - master
8
+ - master # with #262 - ${{{ github.default_branch }}}
6
9
pull_request :
7
10
branches :
8
- - master
11
+ - master # with #262 - ${{{ github.default_branch }}}
9
12
10
13
jobs :
11
14
35
38
node-version : ${{ matrix.node }}
36
39
- uses : ipfs/aegir/actions/cache-node-modules@master
37
40
- run : npm run --if-present test:node
38
- - uses : codecov/codecov-action@v1
41
+ - uses : codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
42
+ with :
43
+ directory : ./.nyc_output
44
+ flags : node
39
45
40
46
test-chrome :
41
47
needs : check
47
53
node-version : lts/*
48
54
- uses : ipfs/aegir/actions/cache-node-modules@master
49
55
- run : npm run --if-present test:chrome
56
+ - uses : codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
57
+ with :
58
+ directory : ./.nyc_output
59
+ flags : chrome
50
60
51
61
test-chrome-webworker :
52
62
needs : check
58
68
node-version : lts/*
59
69
- uses : ipfs/aegir/actions/cache-node-modules@master
60
70
- run : npm run --if-present test:chrome-webworker
71
+ - uses : codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
72
+ with :
73
+ directory : ./.nyc_output
74
+ flags : chrome-webworker
61
75
62
76
test-firefox :
63
77
needs : check
69
83
node-version : lts/*
70
84
- uses : ipfs/aegir/actions/cache-node-modules@master
71
85
- run : npm run --if-present test:firefox
86
+ - uses : codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
87
+ with :
88
+ directory : ./.nyc_output
89
+ flags : firefox
72
90
73
91
test-firefox-webworker :
74
92
needs : check
79
97
with :
80
98
node-version : lts/*
81
99
- uses : ipfs/aegir/actions/cache-node-modules@master
82
- - run : npm run --if-present test:firefox-webworker
100
+ - uses : codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
101
+ with :
102
+ directory : ./.nyc_output
103
+ flags : firefox-webworker
83
104
84
105
test-electron-main :
85
106
needs : check
@@ -91,6 +112,10 @@ jobs:
91
112
node-version : lts/*
92
113
- uses : ipfs/aegir/actions/cache-node-modules@master
93
114
- run : npx xvfb-maybe npm run --if-present test:electron-main
115
+ - uses : codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
116
+ with :
117
+ directory : ./.nyc_output
118
+ flags : electron-main
94
119
95
120
test-electron-renderer :
96
121
needs : check
@@ -102,13 +127,17 @@ jobs:
102
127
node-version : lts/*
103
128
- uses : ipfs/aegir/actions/cache-node-modules@master
104
129
- run : npx xvfb-maybe npm run --if-present test:electron-renderer
130
+ - uses : codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
131
+ with :
132
+ directory : ./.nyc_output
133
+ flags : electron-renderer
105
134
106
135
release :
107
136
needs : [test-node, test-chrome, test-chrome-webworker, test-firefox, test-firefox-webworker, test-electron-main, test-electron-renderer]
108
137
runs-on : ubuntu-latest
109
- if : github.event_name == 'push' && github.ref == 'refs/heads/master'
138
+ if : github.event_name == 'push' && github.ref == 'refs/heads/master' # with #262 - 'refs/heads/${{{ github.default_branch }}}'
110
139
steps :
111
- - uses : actions/checkout@v2.4.0
140
+ - uses : actions/checkout@v2
112
141
with :
113
142
fetch-depth : 0
114
143
- uses : actions/setup-node@v2
0 commit comments