Skip to content

Commit f6b52a3

Browse files
committed
add CI for JavaScript backend
1 parent 7e942c6 commit f6b52a3

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/check.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,31 @@ jobs:
8989
moon test -C examples --test-failure-json
9090
moon test -C stdio_test --test-failure-json
9191
92+
js-build:
93+
runs-on: ubuntu-latest
94+
timeout-minutes: 10
95+
steps:
96+
- uses: actions/checkout@v4
97+
98+
- name: install
99+
run: |
100+
curl -fsSL https://cli.moonbitlang.com/install/unix.sh | bash
101+
echo "$HOME/.moon/bin" >> $GITHUB_PATH
102+
103+
- name: moon version
104+
run: |
105+
moon version --all
106+
moonrun --version
107+
108+
- name: moon check
109+
run: |
110+
moon check --target js
111+
112+
- name: moon test
113+
run: |
114+
moon test --release --target js
115+
moon test --target js
116+
92117
moon-format:
93118
runs-on: ubuntu-latest
94119
timeout-minutes: 10

0 commit comments

Comments
 (0)