Skip to content

Commit 16e6751

Browse files
committed
github/workflows: add test workflow
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
1 parent 665aaa2 commit 16e6751

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
pull_request:
8+
branches:
9+
- "main"
10+
11+
env:
12+
LLVM_VERSION: 13
13+
14+
jobs:
15+
test:
16+
name: test
17+
runs-on: ubuntu-20.04
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v2
22+
23+
- name: Test in Docker
24+
run: |
25+
docker container run -t --mount type=bind,src=$PWD,dst=/go/src/github.com/go-clang/clang-v${LLVM_VERSION} -w /go/src/github.com/go-clang/clang-v${LLVM_VERSION} ghcr.io/go-clang/base:${LLVM_VERSION} make test

0 commit comments

Comments
 (0)