Cache Deno project dependencies #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |