Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 341f6f5

Browse files
committed
Merge branch 'master' into schema-update/1600997012179
2 parents 43aa281 + 739b822 commit 341f6f5

File tree

1 file changed

+23
-13
lines changed

1 file changed

+23
-13
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,17 @@ jobs:
1515
env:
1616
DISPLAY: ":99"
1717
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
1821
MOCHA_TIMEOUT: 60000
1922
UNTIL_TIMEOUT: 30000
2023
steps:
2124
- uses: actions/checkout@v1
2225
- name: install Atom
2326
shell: bash
2427
run: |
25-
curl -s -L https://atom.io/download/deb?channel=nightly \
28+
curl -s -L https://atom.io/download/deb?channel=${ATOM_CHANNEL} \
2629
-H 'Accept: application/octet-stream' \
2730
-o /tmp/atom-amd64.deb
2831
/sbin/start-stop-daemon --start --quiet \
@@ -35,10 +38,10 @@ jobs:
3538
dpkg-deb -x /tmp/atom-amd64.deb /tmp/atom
3639
- name: install dependencies
3740
shell: bash
38-
run: /tmp/atom/usr/share/atom-nightly/resources/app/apm/bin/apm ci
41+
run: ${APM} ci
3942
- name: run tests
4043
shell: bash
41-
run: /tmp/atom/usr/bin/atom-nightly --test test/
44+
run: ${ATOM} --test test/
4245
- name: report code coverage
4346
shell: bash
4447
env:
@@ -59,25 +62,26 @@ jobs:
5962
runs-on: macos-10.14
6063
env:
6164
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
6268
MOCHA_TIMEOUT: 60000
6369
UNTIL_TIMEOUT: 30000
6470
steps:
6571
- uses: actions/checkout@v1
6672
- name: install Atom
6773
shell: bash
6874
run: |
69-
curl -s -L https://atom.io/download/mac?channel=nightly \
75+
curl -s -L https://atom.io/download/mac?channel=${ATOM_CHANNEL} \
7076
-H 'Accept: application/octet-stream' \
7177
-o /tmp/atom.zip
7278
sudo unzip -q /tmp/atom.zip -d /tmp/atom
7379
- name: install dependencies
7480
shell: bash
75-
run: |
76-
'/tmp/atom/Atom Nightly.app/Contents/Resources/app/apm/bin/apm' ci
81+
run: sh -c "${APM} ci"
7782
- name: run tests
7883
shell: bash
79-
run: |
80-
'/tmp/atom/Atom Nightly.app/Contents/Resources/app/atom.sh' --test test/
84+
run: sh -c "${ATOM} --test test/"
8185
- name: report code coverage
8286
shell: bash
8387
env:
@@ -98,12 +102,15 @@ jobs:
98102
runs-on: ubuntu-18.04
99103
env:
100104
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
101108
steps:
102109
- uses: actions/checkout@v1
103110
- name: install Atom
104111
shell: bash
105112
run: |
106-
curl -s -L https://atom.io/download/deb?channel=nightly \
113+
curl -s -L https://atom.io/download/deb?channel=${ATOM_CHANNEL} \
107114
-H 'Accept: application/octet-stream' \
108115
-o /tmp/atom-amd64.deb
109116
/sbin/start-stop-daemon --start --quiet \
@@ -116,7 +123,7 @@ jobs:
116123
dpkg-deb -x /tmp/atom-amd64.deb /tmp/atom
117124
- name: install dependencies
118125
shell: bash
119-
run: /tmp/atom/usr/share/atom-nightly/resources/app/apm/bin/apm ci
126+
run: ${APM} ci
120127
- name: lint
121128
shell: bash
122129
run: npm run lint
@@ -126,14 +133,17 @@ jobs:
126133
runs-on: ubuntu-18.04
127134
env:
128135
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
129139
ATOM_GITHUB_BABEL_ENV: coverage
130140
ATOM_GITHUB_TEST_SUITE: snapshot
131141
steps:
132142
- uses: actions/checkout@v1
133143
- name: install Atom
134144
shell: bash
135145
run: |
136-
curl -s -L https://atom.io/download/deb?channel=nightly \
146+
curl -s -L https://atom.io/download/deb?channel=${ATOM_CHANNEL} \
137147
-H 'Accept: application/octet-stream' \
138148
-o /tmp/atom-amd64.deb
139149
/sbin/start-stop-daemon --start --quiet \
@@ -146,7 +156,7 @@ jobs:
146156
dpkg-deb -x /tmp/atom-amd64.deb /tmp/atom
147157
- name: install dependencies
148158
shell: bash
149-
run: /tmp/atom/usr/share/atom-nightly/resources/app/apm/bin/apm ci
159+
run: ${APM} ci
150160
- name: run snapshot tests
151161
shell: bash
152-
run: /tmp/atom/usr/bin/atom-nightly --test test/
162+
run: ${ATOM} --test test/

0 commit comments

Comments
 (0)