qlty fmt --all #105
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: Unit Tests | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- "qlty-*/**" | |
- "Cargo.*" | |
- ".github/workflows/cli.yml" | |
pull_request: | |
paths: | |
- "qlty-*/**" | |
- "Cargo.*" | |
- ".github/workflows/cli.yml" | |
permissions: | |
actions: write | |
contents: read | |
id-token: write | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
[ubuntu-latest-16-cores, macos-latest-xlarge, windows-latest-16-cores] | |
name: ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }} | |
cancel-in-progress: true | |
steps: | |
- run: git config --global core.autocrlf false | |
- name: Checkout qlty | |
uses: actions/checkout@v4 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Install cargo-llvm-cov | |
uses: taiki-e/install-action@cargo-llvm-cov | |
- name: Setup PHP with PECL extension | |
uses: shivammathur/setup-php@v2 | |
if: matrix.os == 'macos-latest-xlarge' | |
- name: Cache Rust | |
uses: Swatinem/rust-cache@v2 | |
- name: Run Test | |
run: cargo llvm-cov --lcov --output-path target/lcov.info -- --include-ignored | |
- uses: qltysh/qlty-action/coverage@main | |
env: | |
QLTY_COVERAGE_TOKEN: ${{ secrets.QLTY_COVERAGE_TOKEN }} | |
if: ${{ env.QLTY_COVERAGE_TOKEN != '' }} | |
with: | |
coverage-token: ${{ secrets.QLTY_COVERAGE_TOKEN }} | |
files: target/lcov.info | |
tag: cli | |
skip-errors: true |