Skip to content

[fix] indentation & trailing whitespace in Heredoc #1291

[fix] indentation & trailing whitespace in Heredoc

[fix] indentation & trailing whitespace in Heredoc #1291

Workflow file for this run

name: CI
on:
push:
branches: [trunk]
pull_request:
branches: [ trunk ]
jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
components: rustfmt
override: true
- run: cargo fmt --all -- --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.95.0
components: clippy
override: true
- run: cargo clippy --all --all-features -- -D warnings
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- run: |
sudo apt-get install -y shellcheck
./script/lints/lint_fixtures.sh
./script/lints/lint_scripts.sh
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
- os: ubuntu-22.04
- os: macos-latest
- os: ubuntu-22.04-arm
steps:
- uses: actions/checkout@v6
with:
submodules: true
- if: runner.os == 'macOS'
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.95.0
target: aarch64-apple-darwin
override: true
- if: runner.os != 'macOS'
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.95.0
override: true
target: aarch64-unknown-linux-gnu
- run: cargo test --release
- uses: actions/upload-artifact@v7
with:
name: rubyfmt-artifact-${{ matrix.os }}
path: target/release/rubyfmt-main