-
Notifications
You must be signed in to change notification settings - Fork 249
59 lines (47 loc) · 1.33 KB
/
cli.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: 🚦 CLI Tests
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
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: 🚦 Test
runs-on: ${{ matrix.os }}
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]
- 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
with:
coverage-token: ${{ secrets.QLTY_COVERAGE_TOKEN }}
files: target/lcov.info
tag: cli
skip-errors: true