Skip to content

Commit

Permalink
Merge branch '0.34.1-releases' of https://github.com/atom/github into…
Browse files Browse the repository at this point in the history
… 0.34.1-releases
  • Loading branch information
lkashef committed Apr 21, 2020
2 parents 79becc9 + e21325d commit 689fd93
Show file tree
Hide file tree
Showing 6 changed files with 156 additions and 278 deletions.
153 changes: 153 additions & 0 deletions .github/workflows/ci.yml
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/
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Atom GitHub Package

| Build | Code Coverage | Dependencies |
|-------|---------------|--------------|
| [![Build Status](https://dev.azure.com/atom-github/GitHub%20package%20for%20Atom/_apis/build/status/atom.github)](https://dev.azure.com/atom-github/GitHub%20package%20for%20Atom/_build/latest?definitionId=1) | [![codecov](https://codecov.io/gh/atom/github/branch/master/graph/badge.svg)](https://codecov.io/gh/atom/github) | [![Greenkeeper badge](https://badges.greenkeeper.io/atom/github.svg)](https://greenkeeper.io/) [![Dependency Status](https://david-dm.org/atom/github.svg)](https://david-dm.org/atom/github) |
| Build | Code Coverage |
|-------|---------------|
| [![Build Status](https://github.com/atom/github/workflows/ci/badge.svg)](https://github.com/atom/github/actions?query=workflow%3Aci+branch%3Amaster) | [![codecov](https://codecov.io/gh/atom/github/branch/master/graph/badge.svg)](https://codecov.io/gh/atom/github) |

The Atom GitHub package provides Git and GitHub integration for Atom. Check out [github.atom.io](https://github.atom.io) for more information.

Expand Down
204 changes: 0 additions & 204 deletions azure-pipelines.yml

This file was deleted.

20 changes: 0 additions & 20 deletions script/azure-pipelines/linux-install.yml

This file was deleted.

Loading

0 comments on commit 689fd93

Please sign in to comment.