Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Lint

Lint #85

Workflow file for this run

name: Lint
on:
push:
branches:
- 'develop'
- 'main'
pull_request:
schedule:
- cron: '0 0 * * 1'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ (github.ref == 'refs/heads/main' && github.run_number) || github.ref }}
cancel-in-progress: true
jobs:
lint:
strategy:
matrix:
just_variants:
- async-std
- tokio
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Checkout repository
- run: rustup toolchain install stable --profile minimal
- uses: Swatinem/rust-cache@v2
name: Enable Rust caching
with:
shared-key: ""
prefix-key: ${{ matrix.just_variants }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y protobuf-compiler
- name: Install Just
run: |
wget https://github.com/casey/just/releases/download/1.14.0/just-1.14.0-x86_64-unknown-linux-musl.tar.gz
tar -vxf just-1.14.0-x86_64-unknown-linux-musl.tar.gz just
sudo cp just /usr/bin/just
- name: Lint
run: |
just ${{ matrix.just_variants }} lint