-
Notifications
You must be signed in to change notification settings - Fork 5
62 lines (49 loc) · 1.39 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: 'build'
on:
workflow_dispatch:
push:
pull_request:
jobs:
npm-test:
runs-on: "ubuntu-latest"
# # this does not work, we can't customize the CMD
# # https://docs.github.com/en/actions/using-containerized-services/about-service-containers
# services:
# artemis:
# image: enkeys/alpine-openjdk-amq7-snapshot
# options: --entrypoint='ash -c "/mnt/entrypoint.sh amq7-server"'
# ports:
# - 5672:5672
# - 61616:61616
# volumes:
# - ${{github.workspace}}/scripts:/mnt
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16.13.x
- name: Docker
run: |
docker pull enkeys/alpine-openjdk-amq7-snapshot
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
docker start artemis
- name: Install
run: npm install
- name: sleep
run: |
sleep 10
- name: browserify
run: |
npm run-script browserify
- name: doc
run: |
npm run-script doc
- name: test
run: |
npm run-script test
- name: logs
if: ${{ always() }}
run: |
docker logs artemis