Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit d9ae75d

Browse files
authored
Merge pull request #1393 from aminya/update-ci
2 parents 48863de + c44c1c1 commit d9ae75d

File tree

9 files changed

+4970
-11566
lines changed

9 files changed

+4970
-11566
lines changed

.circleci/config.yml

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

.github/workflows/CI.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
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+
- name: Install dependencies
27+
run: |
28+
apm install
29+
# ./node_modules/.bin/atom-package-deps .
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@v2
45+
46+
- uses: UziTech/action-setup-atom@v1
47+
- name: Setup PNPM
48+
uses: pnpm/[email protected]
49+
with:
50+
version: latest
51+
52+
- name: Install dependencies
53+
run: pnpm install
54+
55+
# - name: Format ✨
56+
# run: pnpm test.format
57+
58+
- name: Lint ✨
59+
run: pnpm test.lint
60+
61+
Release:
62+
needs: [Test, Lint]
63+
if: github.ref == 'refs/heads/master' &&
64+
github.event.repository.fork == false
65+
runs-on: ubuntu-latest
66+
steps:
67+
- uses: actions/checkout@v2
68+
- uses: UziTech/action-setup-atom@v1
69+
- uses: actions/setup-node@v1
70+
with:
71+
node-version: "12.x"
72+
- name: NPM install
73+
run: npm install
74+
- name: Build and Commit
75+
run: npm run build-commit
76+
# NOTE: uncomment when ready
77+
# - name: Release 🎉
78+
# uses: cycjimmy/semantic-release-action@v2
79+
# with:
80+
# extends: |
81+
# @semantic-release/apm-config
82+
# env:
83+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
84+
# ATOM_ACCESS_TOKEN: ${{ secrets.ATOM_ACCESS_TOKEN }}
85+
86+
Skip:
87+
if: contains(github.event.head_commit.message, '[skip ci]')
88+
runs-on: ubuntu-latest
89+
steps:
90+
- name: Skip CI 🚫
91+
run: echo skip ci

.github/workflows/bump_deps.yml

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

.npmrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
public-hoist-pattern[]=*
2+
package-lock=false
3+
lockfile=true
4+
prefer-frozen-lockfile=false

.travis.yml

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

appveyor.yml

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

0 commit comments

Comments
 (0)