ci: Adding Initial CI #3
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 | |
on: | |
pull_request: | |
branches: | |
- main | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
checks: write | |
pull-requests: write | |
steps: | |
- name: Install depencencies | |
run: sudo apt-get install -y libxkbcommon-dev libsqlite3-dev | |
- name: Configure rust-toolchain | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: rustfmt | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Lint using clippy | |
uses: auguwu/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Format | |
uses: mbrobbel/rustfmt-check@master | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
mode: review |