File tree Expand file tree Collapse file tree 2 files changed +62
-18
lines changed Expand file tree Collapse file tree 2 files changed +62
-18
lines changed Original file line number Diff line number Diff line change
1
+ name : ' build'
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+ pull_request :
7
+
8
+ jobs :
9
+ npm-test :
10
+ runs-on : " ubuntu-latest"
11
+
12
+ # # this does not work, we can't customize the CMD
13
+ # # https://docs.github.com/en/actions/using-containerized-services/about-service-containers
14
+ # services:
15
+ # artemis:
16
+ # image: enkeys/alpine-openjdk-amq7-snapshot
17
+ # options: --entrypoint='ash -c "/mnt/entrypoint.sh amq7-server"'
18
+ # ports:
19
+ # - 5672:5672
20
+ # - 61616:61616
21
+ # volumes:
22
+ # - ${{github.workspace}}/scripts:/mnt
23
+
24
+ steps :
25
+
26
+ - name : Checkout
27
+ uses : actions/checkout@v3
28
+
29
+ - name : Setup node
30
+ uses : actions/setup-node@v3
31
+ with :
32
+ node-version : 16.13.x
33
+
34
+ - name : Docker
35
+ run : |
36
+ docker pull enkeys/alpine-openjdk-amq7-snapshot
37
+ docker create --name artemis -v`pwd`/scripts:/mnt -p 5672:5672 -p 61616:61616 --entrypoint ash enkeys/alpine-openjdk-amq7-snapshot /mnt/entrypoint.sh amq7-server
38
+ docker start artemis
39
+
40
+ - name : Install
41
+ run : npm install
42
+
43
+ - name : sleep
44
+ run : |
45
+ sleep 10
46
+
47
+ - name : browserify
48
+ run : |
49
+ npm run-script browserify
50
+
51
+ - name : doc
52
+ run : |
53
+ npm run-script doc
54
+
55
+ - name : test
56
+ run : |
57
+ npm run-script test
58
+
59
+ - name : logs
60
+ if : ${{ always() }}
61
+ run : |
62
+ docker logs artemis
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments