Skip to content

Commit

Permalink
ci: add job step names
Browse files Browse the repository at this point in the history
  • Loading branch information
gabeidx committed May 5, 2023
1 parent 6ca5a13 commit 18705ee
Showing 1 changed file with 26 additions and 14 deletions.
40 changes: 26 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,48 +22,60 @@ 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

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

0 comments on commit 18705ee

Please sign in to comment.