Skip to content

ci(setup): Use my setup action (#111) #51

ci(setup): Use my setup action (#111)

ci(setup): Use my setup action (#111) #51

Workflow file for this run

name: 🎽 CI
on:
push:
branches:
- main
paths:
- "**.ts"
- deno.lock
- .github/workflows/ci.yml
pull_request:
paths:
- "**.ts"
- deno.lock
- .github/workflows/ci.yml
jobs:
lint-check:
name: 🧹 Lint Check
runs-on: Ubuntu-Latest
steps:
- name: 🚚 Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: πŸ¦• Setup Deno with Cache
uses: 5ouma/utils/setup-deno-with-cache@main
- name: 🧹 Lint Check
run: deno lint
- name: πŸ“š Lint the JSDoc
run: deno doc --lint ./src
format-check:
name: πŸ“ Format Check
runs-on: Ubuntu-Latest
steps:
- name: 🚚 Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: πŸ¦• Setup Deno with Cache
uses: 5ouma/utils/setup-deno-with-cache@main
- name: πŸ“ Format Check
run: deno fmt --check
type-check:
name: πŸ” Type Check
runs-on: Ubuntu-Latest
steps:
- name: 🚚 Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: πŸ¦• Setup Deno with Cache
uses: 5ouma/utils/setup-deno-with-cache@main
- name: πŸ” Type Check
run: deno check --doc ./src
test:
name: πŸ§ͺ Test
runs-on: Ubuntu-Latest
steps:
- name: 🚚 Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: πŸ¦• Setup Deno with Cache
uses: 5ouma/utils/setup-deno-with-cache@main
- name: πŸ§ͺ Run Tests
run: deno task test:ci
- name: β˜‚οΈ Upload Coverage
uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: β˜‚οΈ Upload Test Results
if: ${{ !cancelled() }}
uses: codecov/test-results-action@9739113ad922ea0a9abb4b2c0f8bf6a4aa8ef820 # v1.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
dry-run-publish:
name: πŸ“¦ Dry Run Publish
runs-on: Ubuntu-Latest
steps:
- name: 🚚 Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: πŸ¦• Setup Deno with Cache
uses: 5ouma/utils/setup-deno-with-cache@main
- name: πŸ“¦ Dry Run Publish
run: deno publish --dry-run