Skip to content

Commit d237884

Browse files
committed
Add Github Actions CI
1 parent 6e2d3a4 commit d237884

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/tests.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
pull_request:
8+
branches: [ master ]
9+
10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
13+
jobs:
14+
run-tests:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repo
18+
uses: actions/checkout@v2
19+
with:
20+
submodules: "recursive"
21+
- name: Build QuickJS
22+
run: make
23+
- name: Run normal tests
24+
# test_os() depends on stdin being a tty, which requires this hack
25+
# https://github.com/gfx/example-github-actions-with-tty
26+
shell: 'script -q -e -c "bash {0}"'
27+
run: make test
28+
29+
run-test262:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout repo
33+
uses: actions/checkout@v2
34+
with:
35+
submodules: "recursive"
36+
- name: Build QuickJS
37+
run: make
38+
- name: Patch test262
39+
run: cd test262 && patch -p1 < ../tests/test262.patch
40+
- name: Run test262 tests
41+
run: make test2

0 commit comments

Comments
 (0)