From 18705eeddf6438ad9a0912b9c4a53b80aaf4e35d Mon Sep 17 00:00:00 2001 From: Gabriel Silva Date: Fri, 5 May 2023 15:10:18 -0300 Subject: [PATCH] ci: add job step names --- .github/workflows/ci.yml | 40 ++++++++++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 190e4d6..4875da0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,33 +22,40 @@ jobs: os: [ubuntu-latest, windows-latest, macos-latest] steps: - # Configure the Github Actions runner to use Linux-style line endings before + # Configure the GitHub Actions runner to use Linux-style line endings before # running the `actions/checkout` step due to a known issue with handling # Windows-style line endings (CRLF) # https://github.com/actions/checkout/issues/135 - - run: | + - name: Setup line endings (LF) + if: matrix.os == 'windows-latest' + run: | git config --global core.autocrlf false git config --global core.eol lf - if: matrix.os == 'windows-latest' - - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v3 - - uses: denoland/setup-deno@v1 + - name: Setup Deno {{ env.DENO_VERSION }} + uses: denoland/setup-deno@v1 with: deno-version: {{ env.DENO_VERSION }} - - uses: actions/cache@v3 + - name: Restore dependencies + uses: actions/cache@v3 with: path: ${{ env.DENO_DIR }} key: dependencies-${{ hashFiles('deno.lock') }} - - run: deno task test + - name: Execute tests + run: deno task test - - run: deno coverage ./cov --lcov > cov.lcov + - name: Generate test coverage report if: matrix.os == 'ubuntu-latest' + run: deno coverage ./cov --lcov > cov.lcov - - uses: codecov/codecov-action@v2 + - name: Upload test coverage report if: matrix.os == 'ubuntu-latest' + uses: codecov/codecov-action@v3 with: name: ${{ matrix.os }} files: cov.lcov @@ -56,14 +63,19 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v3 - - uses: denoland/setup-deno@v1 + - name: Setup Deno {{ env.DENO_VERSION }} + uses: denoland/setup-deno@v1 with: deno-version: { { env.DENO_VERSION } } - - run: deno task check + - name: Type check + run: deno task check - - run: deno fmt --check + - name: Format check + run: deno fmt --check - - run: deno lint + - name: Lint check + run: deno lint