-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (37 loc) · 935 Bytes
/
Copy pathjavascript.yml
File metadata and controls
39 lines (37 loc) · 935 Bytes
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
name: Test for JavaScript implementations
on:
push:
branches: [main]
pull_request:
branches: [main]
paths:
- ".github/workflows/javascript.yml"
- "test/*"
- "*/javascript/*"
jobs:
test:
name: Run test
runs-on: self-hosted
container:
image: buildpack-deps:jammy
defaults:
run:
working-directory: ./test
steps:
- name: Install Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- uses: actions/checkout@v4
with:
submodules: true
- name: Build test maker
run: gcc -o test_maker test_maker.c
- name: Build object program
run: bun build hd.js --compile --outfile hd
working-directory: ./hd/javascript
- name: Build host program
run: ./test_maker .test/hd.test
- name: Run test
run: ./test ../hd/javascript/hd
timeout-minutes: 5