3
3
- push
4
4
- pull_request
5
5
6
- defaults :
7
- run :
8
- shell : bash
9
-
10
6
jobs :
11
7
Test :
12
8
if : " !contains(github.event.head_commit.message, '[skip ci]')"
29
25
run : apm -v
30
26
- name : Install APM dependencies
31
27
run : |
32
- apm ci # uses locked module. use `apm install` for non-locked
28
+ apm install
33
29
- name : Atom Package dependencies
34
- run : |
35
- npm install array-to-txt-file
36
- node -e 'const pkg = require("./package.json"); deps=Array.from(pkg["package-deps"]); const arrayToTxtFile = require("array-to-txt-file"); arrayToTxtFile(deps,"deps.txt", ()=>{});'
37
- cat deps.txt | \
38
- while read dep; do
39
- apm install $dep
40
- done
30
+ run : node ./script/install-package-deps.js
41
31
- name : Run tests 👩🏾💻
42
32
run : npm run test
43
33
48
38
- uses : actions/checkout@v2
49
39
with :
50
40
fetch-depth : 0
51
- - name : Commit lint ✨
52
- uses : wagoid/commitlint-github-action@v1
41
+ # - name: Commit lint ✨
42
+ # uses: wagoid/commitlint-github-action@v1
53
43
- uses : actions/setup-node@v1
54
44
with :
55
45
node-version : " 14.x"
@@ -59,29 +49,31 @@ jobs:
59
49
- name : Lint ✨
60
50
run : npm run lint
61
51
62
- # Release:
63
- # needs: [Test, Lint]
64
- # if: github.ref == 'refs/heads/master' &&
65
- # github.event.repository.fork == false
66
- # runs-on: ubuntu-latest
67
- # steps:
68
- # - uses: actions/checkout@v2
69
- # - uses: UziTech/action-setup-atom@v1
70
- # - uses: actions/setup-node@v1
71
- # with:
72
- # node-version: "14.x"
73
- # - name: NPM install
74
- # run: npm ci
75
- # - name: Build and Commit
76
- # run: npm run build-commit
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 }}
52
+ Release :
53
+ needs : [Test, Lint]
54
+ if : github.ref == 'refs/heads/master' &&
55
+ github.event.repository.fork == false
56
+ runs-on : ubuntu-latest
57
+ steps :
58
+ - uses : actions/checkout@v2
59
+ - uses : UziTech/action-setup-atom@v1
60
+ - uses : actions/setup-node@v1
61
+ with :
62
+ node-version : " 14.x"
63
+ - name : NPM install
64
+ run : npm ci
65
+ - name : Build and Commit
66
+ run : npm run build-commit
67
+ # NOTE: uncomment when ready
68
+ # - name: Release 🎉
69
+ # uses: cycjimmy/semantic-release-action@v2
70
+ # with:
71
+ # extends: |
72
+ # @semantic-release/apm-config
73
+ # env:
74
+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
75
+ # ATOM_ACCESS_TOKEN: ${{ secrets.ATOM_ACCESS_TOKEN }}
76
+
85
77
Skip :
86
78
if : contains(github.event.head_commit.message, '[skip ci]')
87
79
runs-on : ubuntu-latest
0 commit comments