Skip to content

Cache Deno project dependencies #13

Cache Deno project dependencies

Cache Deno project dependencies #13

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:
name: 🧹 Lint
runs-on: Ubuntu-Latest
steps:
- name: 🚚 Checkout Repository
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: πŸ¦• Setup Deno with Cache
uses: ./.github/actions/setup-deno-with-cache
- name: 🧹 Lint Check
run: deno lint
- name: πŸ“š Lint the JSDoc
run: deno doc --lint ./src
format:
name: πŸ“ Format
runs-on: Ubuntu-Latest
steps:
- name: 🚚 Checkout Repository
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: πŸ¦• Setup Deno with Cache
uses: ./.github/actions/setup-deno-with-cache
- name: πŸ“ Format Check
run: deno fmt --check
type-check:
name: πŸ” Type Check
runs-on: Ubuntu-Latest
steps:
- name: 🚚 Checkout Repository
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: πŸ¦• Setup Deno with Cache
uses: ./.github/actions/setup-deno-with-cache
- name: πŸ” Type Check
run: deno check ./src
test:
name: πŸ§ͺ Test
runs-on: Ubuntu-Latest
steps:
- name: 🚚 Checkout Repository
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: πŸ¦• Setup Deno with Cache
uses: ./.github/actions/setup-deno-with-cache
- name: πŸ§ͺ Run Tests
run: deno task cov
- name: β˜‚οΈ Upload Coverage
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
dry-run-publish:
name: πŸ“¦ Dry Run Publish
runs-on: Ubuntu-Latest
steps:
- name: 🚚 Checkout Repository
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: πŸ¦• Setup Deno with Cache
uses: ./.github/actions/setup-deno-with-cache
- name: πŸ“¦ Dry Run Publish
run: deno publish --dry-run