fix: support mysql-compatible databases that only support constant values in set statements #653
Workflow file for this run
This file contains hidden or 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: Rust | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| paths: | |
| - "backend/**" | |
| - "crates/**" | |
| - ".github/**" | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| rust-tests: | |
| name: ${{ matrix.name }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| include: | |
| - name: Test (Ubuntu) | |
| os: depot-ubuntu-22.04-4 | |
| atuin_run_url: https://atuin-binary.t3.storage.dev/bin/main/x86_64-unknown-linux-gnu/atuin-run | |
| - name: Test (macOS) | |
| os: macos-latest | |
| atuin_run_url: https://atuin-binary.t3.storage.dev/bin/main/aarch64-apple-darwin/atuin-run | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install atuin-run | |
| run: | | |
| curl -L -o atuin-run ${{ matrix.atuin_run_url }} | |
| sudo mv atuin-run /usr/local/bin/atuin-run | |
| sudo chmod +x /usr/local/bin/atuin-run | |
| - name: ${{ matrix.name }} | |
| run: | | |
| atuin-run ./runbooks/Run\ Rust\ tests.atrb | |
| rust-checks: | |
| name: ${{ matrix.name }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| include: | |
| - name: Check | |
| command: check | |
| components: "" | |
| os: depot-ubuntu-22.04-4 | |
| - name: Clippy | |
| command: clippy | |
| components: clippy | |
| os: depot-ubuntu-22.04-4 | |
| - name: Format | |
| command: fmt | |
| components: rustfmt | |
| os: depot-ubuntu-22.04-4 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install latest rust | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| components: ${{ matrix.components }} | |
| - uses: awalsh128/cache-apt-pkgs-action@latest | |
| if: runner.os == 'Linux' | |
| with: | |
| packages: libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libasound2-dev | |
| version: 1.0 | |
| - name: Run sccache-cache | |
| uses: mozilla-actions/sccache-action@v0.0.7 | |
| - name: Run ${{ matrix.name }} | |
| env: | |
| RUSTC_WRAPPER: sccache | |
| run: | | |
| case "${{ matrix.command }}" in | |
| test) | |
| cargo test | |
| ;; | |
| check) | |
| cargo check --no-default-features --features wry | |
| ;; | |
| clippy) | |
| cargo clippy -- -D warnings | |
| ;; | |
| fmt) | |
| cargo fmt -- --check | |
| ;; | |
| esac |