forked from atom/github
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '0.34.1-releases' of https://github.com/atom/github into…
… 0.34.1-releases
- Loading branch information
Showing
6 changed files
with
156 additions
and
278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
name: ci | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- 0.34-1-releases | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
jobs: | ||
linux-tests: | ||
name: linux tests | ||
runs-on: ubuntu-18.04 | ||
env: | ||
DISPLAY: ":99" | ||
ATOM_GITHUB_BABEL_ENV: coverage | ||
MOCHA_TIMEOUT: 60000 | ||
UNTIL_TIMEOUT: 30000 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: install Atom | ||
shell: bash | ||
run: | | ||
curl -s -L https://atom.io/download/deb?channel=nightly \ | ||
-H 'Accept: application/octet-stream' \ | ||
-o /tmp/atom-amd64.deb | ||
/sbin/start-stop-daemon --start --quiet \ | ||
--pidfile /tmp/custom_xvfb_99.pid \ | ||
--make-pidfile --background \ | ||
--exec /usr/bin/Xvfb \ | ||
-- :99 -ac -screen 0 1280x1024x16 | ||
sudo apt-get update | ||
sudo apt-get install -yyq libgconf-2-4 build-essential git libsecret-1-dev gvfs-bin | ||
dpkg-deb -x /tmp/atom-amd64.deb /tmp/atom | ||
- name: install dependencies | ||
shell: bash | ||
run: /tmp/atom/usr/share/atom-nightly/resources/app/apm/bin/apm ci | ||
- name: run tests | ||
shell: bash | ||
run: /tmp/atom/usr/bin/atom-nightly --test test/ | ||
- name: report code coverage | ||
shell: bash | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
SYSTEM_PULLREQUEST_PULLREQUESTNUMBER: ${{ github.event.number }} | ||
SYSTEM_PULLREQUEST_SOURCEBRANCH: ${{ github.head_ref }} | ||
BUILD_SOURCEBRANCH: ${{ github.event.ref }} | ||
run: | | ||
npm run report:coverage | ||
bash <(curl -s https://codecov.io/bash) \ | ||
-n "Linux" \ | ||
-P "${SYSTEM_PULLREQUEST_PULLREQUESTNUMBER:-}" \ | ||
-B "${SYSTEM_PULLREQUEST_SOURCEBRANCH:-${BUILD_SOURCEBRANCH}}" | ||
if: success() || failure() | ||
|
||
macos-tests: | ||
name: macos tests | ||
runs-on: macos-10.14 | ||
env: | ||
ATOM_GITHUB_BABEL_ENV: coverage | ||
MOCHA_TIMEOUT: 60000 | ||
UNTIL_TIMEOUT: 30000 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: install Atom | ||
shell: bash | ||
run: | | ||
curl -s -L https://atom.io/download/mac?channel=nightly \ | ||
-H 'Accept: application/octet-stream' \ | ||
-o /tmp/atom.zip | ||
sudo unzip -q /tmp/atom.zip -d /tmp/atom | ||
- name: install dependencies | ||
shell: bash | ||
run: | | ||
'/tmp/atom/Atom Nightly.app/Contents/Resources/app/apm/bin/apm' ci | ||
- name: run tests | ||
shell: bash | ||
run: | | ||
'/tmp/atom/Atom Nightly.app/Contents/Resources/app/atom.sh' --test test/ | ||
- name: report code coverage | ||
shell: bash | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
SYSTEM_PULLREQUEST_PULLREQUESTNUMBER: ${{ github.event.number }} | ||
SYSTEM_PULLREQUEST_SOURCEBRANCH: ${{ github.head_ref }} | ||
BUILD_SOURCEBRANCH: ${{ github.event.ref }} | ||
run: | | ||
npm run report:coverage | ||
bash <(curl -s https://codecov.io/bash) \ | ||
-n "macOS" \ | ||
-P "${SYSTEM_PULLREQUEST_PULLREQUESTNUMBER:-}" \ | ||
-B "${SYSTEM_PULLREQUEST_SOURCEBRANCH:-${BUILD_SOURCEBRANCH}}" | ||
if: success() || failure() | ||
|
||
lint: | ||
name: lint | ||
runs-on: ubuntu-18.04 | ||
env: | ||
DISPLAY: ":99" | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: install Atom | ||
shell: bash | ||
run: | | ||
curl -s -L https://atom.io/download/deb?channel=nightly \ | ||
-H 'Accept: application/octet-stream' \ | ||
-o /tmp/atom-amd64.deb | ||
/sbin/start-stop-daemon --start --quiet \ | ||
--pidfile /tmp/custom_xvfb_99.pid \ | ||
--make-pidfile --background \ | ||
--exec /usr/bin/Xvfb \ | ||
-- :99 -ac -screen 0 1280x1024x16 | ||
sudo apt-get update | ||
sudo apt-get install -yyq libgconf-2-4 build-essential git libsecret-1-dev gvfs-bin | ||
dpkg-deb -x /tmp/atom-amd64.deb /tmp/atom | ||
- name: install dependencies | ||
shell: bash | ||
run: /tmp/atom/usr/share/atom-nightly/resources/app/apm/bin/apm ci | ||
- name: lint | ||
shell: bash | ||
run: npm run lint | ||
|
||
snapshot-tests: | ||
name: snapshot tests | ||
runs-on: ubuntu-18.04 | ||
env: | ||
DISPLAY: ":99" | ||
ATOM_GITHUB_BABEL_ENV: coverage | ||
ATOM_GITHUB_TEST_SUITE: snapshot | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: install Atom | ||
shell: bash | ||
run: | | ||
curl -s -L https://atom.io/download/deb?channel=nightly \ | ||
-H 'Accept: application/octet-stream' \ | ||
-o /tmp/atom-amd64.deb | ||
/sbin/start-stop-daemon --start --quiet \ | ||
--pidfile /tmp/custom_xvfb_99.pid \ | ||
--make-pidfile --background \ | ||
--exec /usr/bin/Xvfb \ | ||
-- :99 -ac -screen 0 1280x1024x16 | ||
sudo apt-get update | ||
sudo apt-get install -yyq libgconf-2-4 build-essential git libsecret-1-dev gvfs-bin | ||
dpkg-deb -x /tmp/atom-amd64.deb /tmp/atom | ||
- name: install dependencies | ||
shell: bash | ||
run: /tmp/atom/usr/share/atom-nightly/resources/app/apm/bin/apm ci | ||
- name: run snapshot tests | ||
shell: bash | ||
run: /tmp/atom/usr/bin/atom-nightly --test test/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.