diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index 7099e5fb4..afb9ba586 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -21,19 +21,19 @@ jobs: matrix: os: [ubuntu-latest-16-cores, macos-latest-xlarge, windows-latest-16-cores] - name: ๐Ÿšฆ Test + name: ${{ matrix.os }} runs-on: ${{ matrix.os }} steps: - - name: ๐Ÿ›‘ Cancel Previous Runs + - name: Cancel Previous Runs uses: styfle/cancel-workflow-action@0.12.1 - 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 diff --git a/.github/workflows/cli_integration.yml b/.github/workflows/cli_integration.yml index ff59c3a1c..3688e1e29 100644 --- a/.github/workflows/cli_integration.yml +++ b/.github/workflows/cli_integration.yml @@ -1,4 +1,4 @@ -name: Integration Tests +name: Integration Tests (Ruby) on: workflow_dispatch: push: @@ -24,31 +24,31 @@ env: jobs: build: - name: ๐Ÿ—๏ธ Build Release CLI + name: Build Release CLI runs-on: ubuntu-latest steps: - - name: โฌ‡๏ธ Checkout cloud + - name: Checkout cloud uses: actions/checkout@v4 - - 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: ๐Ÿ—๏ธ Build Release CLI + - name: Build Release CLI run: cargo build --release - - name: ๐Ÿ“ฆ Archive CLI + - name: Archive CLI uses: actions/upload-artifact@v4 with: name: qlty path: target/release/qlty test_ruby_binary_install: - name: "๐Ÿงช Test: Ruby Binary Install" + name: ${{ matrix.container }} runs-on: ubuntu-latest needs: build strategy: @@ -97,13 +97,13 @@ jobs: git add . git commit -m "Initial commit" - - name: ๐Ÿ“ฆ Download CLI + - name: Download CLI uses: actions/download-artifact@v4 with: name: qlty path: ${{ github.workspace }}/bin - - name: "๐Ÿšฆ Run Test" + - name: Run Test run: | export PATH=$GITHUB_WORKSPACE/bin:$PATH chmod +x $GITHUB_WORKSPACE/bin/qlty diff --git a/.github/workflows/plugins.yml b/.github/workflows/plugins.yml index 85a013d6b..23e2d77fd 100644 --- a/.github/workflows/plugins.yml +++ b/.github/workflows/plugins.yml @@ -22,54 +22,53 @@ jobs: matrix: os: [macos-latest-xlarge, ubuntu-latest-16-cores, windows-latest-16-cores] - name: Plugins test on ${{ matrix.os }} + name: ${{ matrix.os }} runs-on: ${{ matrix.os }} defaults: run: shell: bash steps: - - name: ๐Ÿ›‘ Cancel Previous Runs + - name: Cancel Previous Runs uses: styfle/cancel-workflow-action@0.12.1 - - 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 @@ -77,7 +76,7 @@ jobs: - 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