feat: auto fix tools (#719) #1107
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-and-test-compiler-base | |
on: ["push", "pull_request"] | |
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.67 | |
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.67 | |
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 |