File tree 2 files changed +45
-13
lines changed
2 files changed +45
-13
lines changed Original file line number Diff line number Diff line change 6
6
# - master
7
7
8
8
jobs :
9
+ Build :
10
+ if : " !contains(github.event.head_commit.message, '[skip ci]')"
11
+ runs-on : ${{ matrix.os }}
12
+ strategy :
13
+ fail-fast : false
14
+ matrix :
15
+ os :
16
+ - ubuntu-latest
17
+ atom_channel :
18
+ - stable
19
+ steps :
20
+ - uses : actions/checkout@v2
21
+ - uses : atom-community/action-setup-atom@v1
22
+ with :
23
+ channel : ${{ matrix.atom_channel }}
24
+
25
+ - name : Install dependencies and build
26
+ run : |
27
+ apm install
28
+
29
+ npm run clean
30
+ npm run tsc || echo done
31
+
32
+ npm run clean
33
+ npm run build
34
+
35
+ - name : Upload built files
36
+ uses : actions/upload-artifact@v2
37
+ with :
38
+ path : |
39
+ ./dist
40
+
9
41
Test :
10
42
if : " !contains(github.event.head_commit.message, '[skip ci]')"
43
+ needs : Build
11
44
name : ${{ matrix.os }} - Atom ${{ matrix.atom_channel }}
12
45
runs-on : ${{ matrix.os }}
13
46
strategy :
@@ -24,11 +57,18 @@ jobs:
24
57
with :
25
58
channel : ${{ matrix.atom_channel }}
26
59
27
- - name : Install dependencies and build
60
+ - name : Download articats
61
+ uses : actions/download-artifact@v2
62
+ - name : Place artifacts
63
+ shell : bash
28
64
run : |
29
- apm install
30
- npm run tsc || echo done
31
- npm run build
65
+ rm -rf dist
66
+ mv artifact/* ./
67
+
68
+ - name : Install dependencies
69
+ run : |
70
+ apm install --production
71
+ npm install --only=dev # needed for testing
32
72
33
73
- name : Run tests 👩🏾💻
34
74
run : npm run test
55
95
56
96
- name : Lint ✨
57
97
run : npm run test.lint
58
-
59
- Skip :
60
- if : contains(github.event.head_commit.message, '[skip ci]')
61
- runs-on : ubuntu-latest
62
- steps :
63
- - name : Skip CI 🚫
64
- run : echo skip ci
Original file line number Diff line number Diff line change 48
48
"build:services-docs" : " markdox lib/services/index.js -o lib/services/README.md" ,
49
49
"build:plugin-docs" : " markdox lib/plugin-api/hydrogen-provider.js lib/plugin-api/hydrogen-kernel.js -o docs/PluginAPI.md" ,
50
50
"build:docs" : " npm run build:plugin-docs && npm run build:services-docs" ,
51
- "build-commit" : " npm run clean && build-commit -o dist" ,
52
- "prepare" : " npm run build"
51
+ "build-commit" : " npm run clean && build-commit -o dist"
53
52
},
54
53
"atomTestRunner" : " atom-jasmine3-test-runner" ,
55
54
"repository" : " https://github.com/nteract/hydrogen" ,
You can’t perform that action at this time.
0 commit comments