[prim fix] compounding of base token #1878
Workflow file for this run
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: Lint Quasar code | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref }} | |
cancel-in-progress: true | |
# This workflow makes x86_64 binaries for linux. | |
# TODO: add darwin later | |
jobs: | |
lint-go: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Setup Golang | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.18 | |
- name: Display go version | |
run: go version | |
- name: Go lint | |
run: make lint | |
lint-rust: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@stable | |
- name: Show versions | |
run: rustc -V && cargo -V | |
- name: Rust lint | |
run: cd smart-contracts && RUSTFLAGS="-Dwarnings" cargo clippy --workspace -- -D warnings --A deprecated | |
- name: Rust format check | |
run: cd smart-contracts && cargo fmt --all -- --check |