Skip to content

Commit 584188a

Browse files
authored
Merge pull request #2335 from atom-ide-community/github-actions
2 parents 077a62a + 7ba6340 commit 584188a

File tree

13 files changed

+192
-4608
lines changed

13 files changed

+192
-4608
lines changed

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
* text=auto eol=lf
2+
*.{cmd,[cC][mM][dD]} text eol=crlf
3+
*.{bat,[bB][aA][tT]} text eol=crlf
4+
5+
# don't diff machine generated files
6+
dist/ -diff
7+
package-lock.json -diff

.github/workflows/CI.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: CI
2+
on:
3+
- pull_request
4+
- push
5+
6+
jobs:
7+
Test:
8+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
9+
name: ${{ matrix.os }} - Atom ${{ matrix.atom_channel }}
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os:
15+
- ubuntu-latest
16+
- macos-latest
17+
- windows-latest
18+
atom_channel: [stable, beta]
19+
steps:
20+
- uses: actions/checkout@v2
21+
- uses: UziTech/action-setup-atom@v1
22+
with:
23+
channel: ${{ matrix.atom_channel }}
24+
- name: Versions
25+
run: apm -v
26+
27+
- name: Install APM dependencies
28+
run: |
29+
apm install
30+
31+
- name: Run tests 👩🏾‍💻
32+
run: npm run test
33+
34+
Lint:
35+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
36+
runs-on: ubuntu-latest
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
steps:
40+
- uses: actions/checkout@v2
41+
with:
42+
fetch-depth: 0
43+
- name: Commit lint ✨
44+
uses: wagoid/commitlint-github-action@v1
45+
- uses: actions/setup-node@v2
46+
with:
47+
node-version: "12.x"
48+
- name: Install NPM dependencies
49+
run: |
50+
npm install
51+
- name: Lint ✨
52+
run: npm run lint
53+
54+
# Release:
55+
# needs: [Test, Lint]
56+
# if: github.ref == 'refs/heads/master' &&
57+
# github.event.repository.fork == false
58+
# runs-on: ubuntu-latest
59+
# steps:
60+
# - uses: actions/checkout@v2
61+
# - uses: UziTech/action-setup-atom@v1
62+
# - uses: actions/setup-node@v1
63+
# with:
64+
# node-version: "12.x"
65+
# - name: NPM install
66+
# run: npm install
67+
# - name: Build and Commit
68+
# run: npm run build-commit
69+
# # NOTE: uncomment when ready
70+
# # - name: Release 🎉
71+
# # uses: cycjimmy/semantic-release-action@v2
72+
# # with:
73+
# # extends: |
74+
# # @semantic-release/apm-config
75+
# # env:
76+
# # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
77+
# # ATOM_ACCESS_TOKEN: ${{ secrets.ATOM_ACCESS_TOKEN }}
78+
79+
Skip:
80+
if: contains(github.event.head_commit.message, '[skip ci]')
81+
runs-on: ubuntu-latest
82+
steps:
83+
- name: Skip CI 🚫
84+
run: echo skip ci

.github/workflows/bump_deps.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Bump_Dependencies
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
7+
jobs:
8+
Bump_Dependencies:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v2-beta
13+
with:
14+
node-version: "12"
15+
16+
- name: setup npm-check-updates
17+
run: npm install -g npm-check-updates
18+
19+
- run: |
20+
ncu -u --dep prod
21+
npm install
22+
23+
24+
- uses: tibdex/github-app-token@v1
25+
id: generate-token
26+
with:
27+
app_id: ${{ secrets.APP_ID }}
28+
private_key: ${{ secrets.APP_PRIVATE_KEY }}
29+
- uses: peter-evans/create-pull-request@v3
30+
with:
31+
token: ${{ steps.generate-token.outputs.token }}
32+
commit-message: Update Dependencies
33+
title: "fix: Update Dependencies"
34+
labels: Dependencies
35+
branch: "Bump_Dependencies"
36+
37+
38+
Bump_devDependencies:
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v2
42+
- uses: actions/setup-node@v2-beta
43+
with:
44+
node-version: "12"
45+
46+
- name: setup npm-check-updates
47+
run: npm install -g npm-check-updates
48+
49+
- run: |
50+
ncu -u --dep dev
51+
npm install
52+
53+
- uses: tibdex/github-app-token@v1
54+
id: generate-token
55+
with:
56+
app_id: ${{ secrets.APP_ID }}
57+
private_key: ${{ secrets.APP_PRIVATE_KEY }}
58+
- uses: peter-evans/create-pull-request@v3
59+
with:
60+
token: ${{ steps.generate-token.outputs.token }}
61+
commit-message: Update devDependencies
62+
title: "chore: Update devDependencies"
63+
labels: Dependencies
64+
branch: "Bump_devDependencies"

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ npm-debug.log
33
node_modules
44
examples/test/
55
.sass-cache/
6+
7+
package-lock.json

.travis.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

lib/header-view.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import { View } from 'atom-space-pen-views';
44

55
export default class HeaderView extends View {
6-
76
static content() {
87
return this.div({ class: 'header-view' }, () => {
98
this.span({ class: 'heading-title', outlet: 'title' });

lib/runner.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import fs from 'fs';
55
import path from 'path';
66

77
export default class Runner {
8-
98
// Public: Creates a Runner instance
109
//
1110
// * `scriptOptions` a {ScriptOptions} object instance

lib/script-options-view.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import _ from 'underscore';
66
import ScriptInputView from './script-input-view';
77

88
export default class ScriptOptionsView extends View {
9-
109
static content() {
1110
this.div({ class: 'options-view' }, () => {
1211
this.h4({ class: 'modal-header' }, 'Configure Run Options');

lib/script-view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export default class ScriptView extends MessagePanelView {
137137
showNoLanguageSpecified() {
138138
const err = $$(function () {
139139
this.p('You must select a language in the lower right, or save the file with an appropriate extension.',
140-
);
140+
);
141141
});
142142
this.handleError(err);
143143
}

0 commit comments

Comments
 (0)