@@ -15,14 +15,17 @@ jobs:
15
15
env :
16
16
DISPLAY : " :99"
17
17
ATOM_GITHUB_BABEL_ENV : coverage
18
+ ATOM_CHANNEL : beta
19
+ ATOM : /tmp/atom/usr/bin/atom-beta
20
+ APM : /tmp/atom/usr/share/atom-beta/resources/app/apm/bin/apm
18
21
MOCHA_TIMEOUT : 60000
19
22
UNTIL_TIMEOUT : 30000
20
23
steps :
21
24
- uses : actions/checkout@v1
22
25
- name : install Atom
23
26
shell : bash
24
27
run : |
25
- curl -s -L https://atom.io/download/deb?channel=nightly \
28
+ curl -s -L https://atom.io/download/deb?channel=${ATOM_CHANNEL} \
26
29
-H 'Accept: application/octet-stream' \
27
30
-o /tmp/atom-amd64.deb
28
31
/sbin/start-stop-daemon --start --quiet \
@@ -35,10 +38,10 @@ jobs:
35
38
dpkg-deb -x /tmp/atom-amd64.deb /tmp/atom
36
39
- name : install dependencies
37
40
shell : bash
38
- run : /tmp/atom/usr/share/atom-nightly/resources/app/apm/bin/apm ci
41
+ run : ${APM} ci
39
42
- name : run tests
40
43
shell : bash
41
- run : /tmp/atom/usr/bin/atom-nightly --test test/
44
+ run : ${ATOM} --test test/
42
45
- name : report code coverage
43
46
shell : bash
44
47
env :
@@ -59,25 +62,26 @@ jobs:
59
62
runs-on : macos-10.14
60
63
env :
61
64
ATOM_GITHUB_BABEL_ENV : coverage
65
+ ATOM_CHANNEL : beta
66
+ ATOM : /tmp/atom/Atom\ Beta.app/Contents/Resources/app/atom.sh
67
+ APM : /tmp/atom/Atom\ Beta.app/Contents/Resources/app/apm/bin/apm
62
68
MOCHA_TIMEOUT : 60000
63
69
UNTIL_TIMEOUT : 30000
64
70
steps :
65
71
- uses : actions/checkout@v1
66
72
- name : install Atom
67
73
shell : bash
68
74
run : |
69
- curl -s -L https://atom.io/download/mac?channel=nightly \
75
+ curl -s -L https://atom.io/download/mac?channel=${ATOM_CHANNEL} \
70
76
-H 'Accept: application/octet-stream' \
71
77
-o /tmp/atom.zip
72
78
sudo unzip -q /tmp/atom.zip -d /tmp/atom
73
79
- name : install dependencies
74
80
shell : bash
75
- run : |
76
- '/tmp/atom/Atom Nightly.app/Contents/Resources/app/apm/bin/apm' ci
81
+ run : sh -c "${APM} ci"
77
82
- name : run tests
78
83
shell : bash
79
- run : |
80
- '/tmp/atom/Atom Nightly.app/Contents/Resources/app/atom.sh' --test test/
84
+ run : sh -c "${ATOM} --test test/"
81
85
- name : report code coverage
82
86
shell : bash
83
87
env :
@@ -98,12 +102,15 @@ jobs:
98
102
runs-on : ubuntu-18.04
99
103
env :
100
104
DISPLAY : " :99"
105
+ ATOM_CHANNEL : beta
106
+ ATOM : /tmp/atom/usr/bin/atom-beta
107
+ APM : /tmp/atom/usr/share/atom-beta/resources/app/apm/bin/apm
101
108
steps :
102
109
- uses : actions/checkout@v1
103
110
- name : install Atom
104
111
shell : bash
105
112
run : |
106
- curl -s -L https://atom.io/download/deb?channel=nightly \
113
+ curl -s -L https://atom.io/download/deb?channel=${ATOM_CHANNEL} \
107
114
-H 'Accept: application/octet-stream' \
108
115
-o /tmp/atom-amd64.deb
109
116
/sbin/start-stop-daemon --start --quiet \
@@ -116,7 +123,7 @@ jobs:
116
123
dpkg-deb -x /tmp/atom-amd64.deb /tmp/atom
117
124
- name : install dependencies
118
125
shell : bash
119
- run : /tmp/atom/usr/share/atom-nightly/resources/app/apm/bin/apm ci
126
+ run : ${APM} ci
120
127
- name : lint
121
128
shell : bash
122
129
run : npm run lint
@@ -126,14 +133,17 @@ jobs:
126
133
runs-on : ubuntu-18.04
127
134
env :
128
135
DISPLAY : " :99"
136
+ ATOM_CHANNEL : beta
137
+ ATOM : /tmp/atom/usr/bin/atom-beta
138
+ APM : /tmp/atom/usr/share/atom-beta/resources/app/apm/bin/apm
129
139
ATOM_GITHUB_BABEL_ENV : coverage
130
140
ATOM_GITHUB_TEST_SUITE : snapshot
131
141
steps :
132
142
- uses : actions/checkout@v1
133
143
- name : install Atom
134
144
shell : bash
135
145
run : |
136
- curl -s -L https://atom.io/download/deb?channel=nightly \
146
+ curl -s -L https://atom.io/download/deb?channel=${ATOM_CHANNEL} \
137
147
-H 'Accept: application/octet-stream' \
138
148
-o /tmp/atom-amd64.deb
139
149
/sbin/start-stop-daemon --start --quiet \
@@ -146,7 +156,7 @@ jobs:
146
156
dpkg-deb -x /tmp/atom-amd64.deb /tmp/atom
147
157
- name : install dependencies
148
158
shell : bash
149
- run : /tmp/atom/usr/share/atom-nightly/resources/app/apm/bin/apm ci
159
+ run : ${APM} ci
150
160
- name : run snapshot tests
151
161
shell : bash
152
- run : /tmp/atom/usr/bin/atom-nightly --test test/
162
+ run : ${ATOM} --test test/
0 commit comments