-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
85 additions
and
0 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,11 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
- package-ecosystem: "npm" | ||
versioning-strategy: "increase" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
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,74 @@ | ||
name: "CI" | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
||
env: | ||
CI: true | ||
|
||
jobs: | ||
Test: | ||
if: "!contains(github.event.head_commit.message, '[skip ci]')" | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
channel: [stable, beta] | ||
fail-fast: false | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: UziTech/action-setup-atom@v1 | ||
with: | ||
channel: ${{ matrix.channel }} | ||
- name: Atom version | ||
run: atom -v | ||
- name: APM version | ||
run: apm -v | ||
- name: Install package dependencies | ||
run: apm i minimap | ||
- name: Install dependencies | ||
run: apm ci | ||
- name: Run tests 👩🏾💻 | ||
run: atom --test spec | ||
|
||
Lint: | ||
if: "!contains(github.event.head_commit.message, '[skip ci]')" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: '*' | ||
- name: NPM install | ||
run: npm ci | ||
- name: Lint ✨ | ||
run: npm run lint | ||
|
||
Release: | ||
needs: [Test, Lint] | ||
if: | | ||
github.ref == 'refs/heads/master' && | ||
github.event.repository.fork == false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: UziTech/action-setup-atom@v1 | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: '*' | ||
- name: NPM install | ||
run: npm ci | ||
- name: Release 🎉 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
ATOM_ACCESS_TOKEN: ${{ secrets.ATOM_ACCESS_TOKEN }} | ||
run: npx semantic-release | ||
|
||
Skip: | ||
if: contains(github.event.head_commit.message, '[skip ci]') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Skip CI 🚫 | ||
run: echo skip ci |