Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Commit ea5ac15

Browse files
author
Natalie
committed
chore(gh-actions): add build with stored artifact
1 parent 76d5faa commit ea5ac15

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/run-test.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,24 @@ jobs:
77
# build
88
build:
99

10-
runs-on:
10+
container:
11+
image: apiaryio/emcc:1.38.11
12+
13+
steps:
14+
- run: apt-get update && apt-get install -y git-core
15+
- uses: actions/checkout@v2
16+
- run: git submodule update --recursive --init
17+
- run: npm install
18+
- run: ./scripts/wrap.js
19+
- run: ./scripts/emcbuild.sh
20+
- name: keeping some data stored
21+
uses: actions/upload-artifact@v2
22+
with:
23+
name: drafter
24+
path:
25+
- drafter.js
26+
- drafter.js.mem
27+
- drafter.nomem.js
1128

1229
# general test run
1330
test:
@@ -27,6 +44,11 @@ jobs:
2744
node-version: ${{ matrix.node-version }}
2845

2946
- run: git submodule update --recursive --init
47+
- name: get stored artifacts
48+
uses: actions/download-artifact@v2
49+
with:
50+
name: drafter
51+
3052
- run: npm install
3153
- run:
3254
command: |

0 commit comments

Comments
 (0)