Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
441926b
Some fun with GitHub actions
smashwilson Oct 7, 2019
f3d6c64
Let's see if the default works
smashwilson Oct 7, 2019
1a203ea
Make that a map
smashwilson Oct 7, 2019
1f60f64
Indentation
smashwilson Oct 7, 2019
b379d43
macOS and Linux install steps
smashwilson Oct 7, 2019
f1fca6c
Use dpkg instead of dpkg-deb
smashwilson Oct 7, 2019
bd33289
Create symlinks
smashwilson Oct 7, 2019
8fb291c
Use GITHUB_ variables
smashwilson Oct 7, 2019
5794f6a
Install missing dependency
smashwilson Oct 7, 2019
a84062b
Back to the way it was
smashwilson Oct 7, 2019
9402ed1
Fully qualify apm path
smashwilson Oct 7, 2019
308361d
Use dpkg-deb -x in lint job
smashwilson Oct 7, 2019
79fe411
Those lines need backslashes now
smashwilson Oct 7, 2019
948071a
No & maybe?
smashwilson Oct 7, 2019
cae7f53
Rename it to "ci" because it's shorter
smashwilson Oct 7, 2019
de23423
Fix up variable exporting syntax
smashwilson Oct 7, 2019
5ef1b4f
Add msbuild path
smashwilson Oct 7, 2019
1fb7924
Try an older Windows image
smashwilson Oct 7, 2019
90901b7
Set VCTargetsPath
smashwilson Oct 7, 2019
ef59098
List matching directories under MSBuild
smashwilson Oct 7, 2019
b30b8ad
Wait is it 2017
smashwilson Oct 7, 2019
12edf0e
Actually output
smashwilson Oct 7, 2019
f4214f1
Lowercase for prettier names
smashwilson Oct 8, 2019
43a897f
Write all directories
smashwilson Oct 8, 2019
25e164f
More path tweaking
smashwilson Oct 8, 2019
493cd8a
Missed a directory
smashwilson Oct 8, 2019
d161c67
Derp derp
smashwilson Oct 8, 2019
5285879
Bad quotes i guess
smashwilson Oct 8, 2019
a7bebdb
Tell node-gyp what visual studio version we're using
smashwilson Oct 8, 2019
cedb65c
Let's try -g
smashwilson Oct 8, 2019
eff24c9
Use `apm config` instead of `npm config`
smashwilson Oct 8, 2019
5d79903
Dump apm and npm configs
smashwilson Oct 8, 2019
14d1dcf
Merge branch 'master' into aw/use-github-actions
smashwilson Nov 15, 2019
258620a
Wipe the AZP config
smashwilson Nov 15, 2019
f73daed
Merge branch 'master' of github.com:atom/github into use-github-actions
smashwilson Apr 15, 2020
6d33d93
Scrap Windows tests for now
smashwilson Apr 15, 2020
32a2092
Use the nightly channel instead of dev
smashwilson Apr 15, 2020
5da300c
Link the README to GitHub Actions
smashwilson Apr 15, 2020
cdb8a40
Remove Azure Pipelines builds
smashwilson Apr 15, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
152 changes: 152 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
name: ci
on:
push:
branches:
- master
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