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

Commit 83e8868

Browse files
authored
Merge pull request #77 from AtomFormat/github-actions
2 parents 9bcd627 + 9252f27 commit 83e8868

File tree

7 files changed

+84
-87
lines changed

7 files changed

+84
-87
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text eol=lf

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
github: [UziTech]

.github/workflows/main.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: "CI"
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
8+
env:
9+
CI: true
10+
11+
jobs:
12+
Test:
13+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest, macos-latest, windows-latest]
17+
channel: [stable, beta]
18+
runs-on: ${{ matrix.os }}
19+
steps:
20+
- name: Checkout Code
21+
uses: actions/checkout@v2
22+
- name: Install Atom
23+
uses: UziTech/action-setup-atom@v1
24+
with:
25+
channel: ${{ matrix.channel }}
26+
- name: Atom Version
27+
run: atom -v
28+
- name: APM Version
29+
run: apm -v
30+
- name: Install Dependencies
31+
run: apm ci
32+
- name: Run Tests 👩🏾‍💻
33+
run: atom --test spec
34+
35+
Lint:
36+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
37+
runs-on: ubuntu-latest
38+
steps:
39+
- name: Checkout Code
40+
uses: actions/checkout@v2
41+
- name: Install Node
42+
uses: dcodeIO/setup-node-nvm@master
43+
with:
44+
node-version: 'lts/*'
45+
- name: Install Dependencies
46+
run: npm ci
47+
- name: Lint ✨
48+
run: npm run lint
49+
50+
Release:
51+
needs: [Test, Lint]
52+
if: |
53+
github.ref == 'refs/heads/master' &&
54+
github.event.repository.fork == false
55+
runs-on: ubuntu-latest
56+
steps:
57+
- name: Checkout Code
58+
uses: actions/checkout@v2
59+
- name: Install Atom
60+
uses: UziTech/action-setup-atom@v1
61+
- name: Install Node
62+
uses: dcodeIO/setup-node-nvm@master
63+
with:
64+
node-version: 'lts/*'
65+
- name: Install Dependencies
66+
run: npm ci
67+
- name: Release 🎉
68+
env:
69+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70+
ATOM_ACCESS_TOKEN: ${{ secrets.ATOM_ACCESS_TOKEN }}
71+
run: npx semantic-release
72+
73+
Skip:
74+
if: contains(github.event.head_commit.message, '[skip ci]')
75+
runs-on: ubuntu-latest
76+
steps:
77+
- name: Skip CI 🚫
78+
run: echo skip ci

.travis.yml

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

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# eslint-format
22

3-
[![Build Status](https://travis-ci.org/AtomFormat/eslint-format.svg?branch=master)](https://travis-ci.org/AtomFormat/eslint-format)
4-
[![Build status](https://ci.appveyor.com/api/projects/status/eyr68a1cn96e37ra?svg=true)](https://ci.appveyor.com/project/UziTech/eslint-format)
3+
[![Actions Status](https://github.com/AtomFormat/eslint-format/workflows/CI/badge.svg)](https://github.com/AtomFormat/eslint-format/actions)
54
[![Dependency Status](https://david-dm.org/AtomFormat/eslint-format.svg)](https://david-dm.org/AtomFormat/eslint-format)
65

76
This format plugin for [Atom IDE](https://ide.atom.io/) provides

appveyor.yml

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

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
},
1515
"scripts": {
1616
"test": "atom --test spec",
17-
"lint": "eslint .",
18-
"semantic-release": "semantic-release"
17+
"lint": "eslint ."
1918
},
2019
"atomTestRunner": "atom-jasmine3-test-runner",
2120
"providedServices": {

0 commit comments

Comments
 (0)