Fix goth tests so they run on newest ubuntu machines and python3.12 (… #1994
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: Check code integrity (lock, fmt, clippy) | |
on: | |
workflow_dispatch: | |
inputs: | |
profile: | |
description: 'Profile (unused right now)' | |
required: true | |
default: 'debug' | |
push: | |
branches: | |
- master | |
- release/* | |
pull_request: | |
branches: | |
- master | |
- master-fast | |
- release/* | |
env: | |
rust_stable: 1.81.0 | |
jobs: | |
check_format: | |
name: Check formatting | |
runs-on: [ ubuntu-latest ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Install Rust ${{ env.rust_stable }} | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ env.rust_stable }} | |
components: rustfmt, clippy | |
- name: Setup cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Check lockfile | |
uses: actions-rs/cargo@v1 | |
with: | |
command: tree | |
args: --locked | |
save-if: ${{ github.ref == 'refs/heads/master' }} | |
- name: Check formatting | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
- name: Check clippy lints | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --all-targets --all-features --workspace -- -D warnings |