forked from kcl-lang/kcl
-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (56 loc) · 1.47 KB
/
test_compiler_base.yaml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: build-and-test-compiler-base
on:
push:
paths:
- 'compiler_base/**'
pull_request:
paths:
- 'compiler_base/**'
jobs:
check-fmt:
name: Test
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out code
uses: actions/checkout@v3
with:
submodules: "true"
- name: Install rust nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.76
override: true
components: clippy, rustfmt
- name: Rust code format check
working-directory: ./compiler_base
run: cargo fmt --check
shell: bash
test-codecov-lcov:
name: Test
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out code
uses: actions/checkout@v3
with:
submodules: "true"
- name: Install rust nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.76
override: true
components: clippy, rustfmt
- name: Compiler_base rust unit test
working-directory: ./compiler_base
run: make codecov-lcov
shell: bash
- name: Coveralls upload
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./compiler_base/.compiler_base/lcov.info