File tree Expand file tree Collapse file tree 2 files changed +45
-14
lines changed Expand file tree Collapse file tree 2 files changed +45
-14
lines changed Original file line number Diff line number Diff line change 6
6
# - master
7
7
8
8
jobs :
9
- Test :
9
+ Build :
10
10
if : " !contains(github.event.head_commit.message, '[skip ci]')"
11
- name : ${{ matrix.os }} - Atom ${{ matrix.atom_channel }}
12
11
runs-on : ${{ matrix.os }}
13
12
strategy :
14
13
fail-fast : false
15
14
matrix :
16
15
os :
17
16
- ubuntu-latest
18
- - macos-latest
19
- - windows-latest
20
- atom_channel : [stable, beta]
17
+ atom_channel :
18
+ - stable
21
19
steps :
22
20
- uses : actions/checkout@v2
23
21
- uses : atom-community/action-setup-atom@v1
27
25
- name : Install dependencies and build
28
26
run : |
29
27
apm install
28
+
29
+ npm run clean
30
30
npm run tsc || echo done
31
+
32
+ npm run clean
31
33
npm run build
32
34
35
+ - name : Upload built files
36
+ uses : actions/upload-artifact@v2
37
+ with :
38
+ path : |
39
+ ./dist
40
+
41
+ Test :
42
+ if : " !contains(github.event.head_commit.message, '[skip ci]')"
43
+ needs : Build
44
+ name : ${{ matrix.os }} - Atom ${{ matrix.atom_channel }}
45
+ runs-on : ${{ matrix.os }}
46
+ strategy :
47
+ fail-fast : false
48
+ matrix :
49
+ os :
50
+ - ubuntu-latest
51
+ # - macos-latest
52
+ # - windows-latest
53
+ atom_channel : [beta]
54
+ steps :
55
+ - uses : actions/checkout@v2
56
+ - uses : atom-community/action-setup-atom@v1
57
+ with :
58
+ channel : ${{ matrix.atom_channel }}
59
+
60
+ - name : Download articats
61
+ uses : actions/download-artifact@v2
62
+ - name : Place artifacts
63
+ shell : bash
64
+ run : |
65
+ rm -rf dist
66
+ mv artifact/* ./
67
+
68
+ - name : Install production dependencies
69
+ run : |
70
+ apm install --production
71
+
33
72
- name : Run tests 👩🏾💻
34
73
run : npm run test
35
74
55
94
56
95
- name : Lint ✨
57
96
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