-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up workflow names (steps / jobs)
- Loading branch information
Showing
3 changed files
with
26 additions
and
27 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,19 +21,19 @@ jobs: | |
matrix: | ||
os: | ||
[ubuntu-latest-16-cores, macos-latest-xlarge, windows-latest-16-cores] | ||
name: 🚦 Test | ||
name: "Unit Test: ${{ matrix.os }}" | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: 🛑 Cancel Previous Runs | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
|
||
- run: git config --global core.autocrlf false | ||
|
||
- name: ⬇️ Checkout qlty | ||
- name: Checkout qlty | ||
uses: actions/checkout@v4 | ||
|
||
- name: 🦀 Install Rust toolchain | ||
- name: Install Rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
|
@@ -45,10 +45,10 @@ jobs: | |
uses: shivammathur/setup-php@v2 | ||
if: matrix.os == 'macos-latest-xlarge' | ||
|
||
- name: 🫙 Cache Rust | ||
- name: Cache Rust | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: 🚦 Run Test | ||
- name: Run Test | ||
run: cargo llvm-cov --lcov --output-path target/lcov.info -- --include-ignored | ||
|
||
- uses: qltysh/qlty-action/coverage@main | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,62 +22,61 @@ jobs: | |
matrix: | ||
os: | ||
[macos-latest-xlarge, ubuntu-latest-16-cores, windows-latest-16-cores] | ||
name: Plugins test on ${{ matrix.os }} | ||
name: "Plugins test: ${{ matrix.os }}" | ||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
shell: bash | ||
|
||
steps: | ||
- name: 🛑 Cancel Previous Runs | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
|
||
- name: ⬇️ Checkout repo | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: 📦 Use Node.js | ||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: "npm" | ||
cache-dependency-path: plugins/package-lock.json | ||
|
||
# Generate Cache key for Linux/macOS | ||
- name: 🔒 Set CACHE_MONTH on Linux/macOS | ||
- name: Generate cache key | ||
run: echo "CACHE_MONTH=$(date +'%Y-%m')" >> $GITHUB_ENV | ||
|
||
- name: 💾 Cache qlty tools | ||
- name: Cache qlty tools | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.qlty | ||
key: ${{ runner.os }}-qlty-${{ env.CACHE_MONTH }} | ||
|
||
- name: 📦 Setup PHP with PECL extension | ||
- name: Setup PHP with PECL extension | ||
uses: shivammathur/setup-php@v2 | ||
if: matrix.os == 'macos-latest-xlarge' | ||
|
||
- name: 📦 Setup Ruby | ||
- name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.3.0 | ||
if: matrix.os == 'windows-latest-16-cores' | ||
|
||
- name: 🦀 Install Rust toolchain | ||
- name: Install Rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
|
||
- name: 🫙 Cache Rust | ||
- name: Cache Rust | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: ⚙️ cargo build | ||
- name: cargo build | ||
run: cargo build | ||
env: | ||
RUST_BACKTRACE: 1 | ||
|
||
- name: Move qlty into PATH | ||
run: echo "${{ github.workspace }}/target/debug" >> $GITHUB_PATH | ||
|
||
- name: 🔍 Check qlty version | ||
- name: Check qlty version | ||
run: qlty --version | ||
|
||
# Login to the GitHub Container Registry to reduce trivy rate limiting errors | ||
|