-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(test): Run Deno tests in parallel (#61)
It runs much faster and more efficiently.
- Loading branch information
Showing
3 changed files
with
105 additions
and
49 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
|
||
- name: 🦕 Setup Deno | ||
uses: denoland/setup-deno@5e01c016a857a4dbb5afe9d0f9733cd472cba985 # v1.5.1 | ||
with: | ||
deno-version: v1.x | ||
|
||
- 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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
|
||
- name: 🦕 Setup Deno | ||
uses: denoland/setup-deno@5e01c016a857a4dbb5afe9d0f9733cd472cba985 # v1.5.1 | ||
with: | ||
deno-version: v1.x | ||
|
||
- name: 📝 Format Check | ||
run: deno fmt --check | ||
|
||
type-check: | ||
name: 🔍 Type Check | ||
runs-on: Ubuntu-Latest | ||
|
||
steps: | ||
- name: 🚚 Checkout Repository | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
|
||
- name: 🦕 Setup Deno | ||
uses: denoland/setup-deno@5e01c016a857a4dbb5afe9d0f9733cd472cba985 # v1.5.1 | ||
with: | ||
deno-version: v1.x | ||
|
||
- name: 🔍 Type Check | ||
run: deno check ./src | ||
|
||
test: | ||
name: 🧪 Test | ||
runs-on: Ubuntu-Latest | ||
|
||
steps: | ||
- name: 🚚 Checkout Repository | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
|
||
- name: 🦕 Setup Deno | ||
uses: denoland/setup-deno@5e01c016a857a4dbb5afe9d0f9733cd472cba985 # v1.5.1 | ||
with: | ||
deno-version: v1.x | ||
|
||
- name: 🧪 Run Tests | ||
run: deno task cov | ||
|
||
- name: ☂️ Upload Coverage | ||
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
dry-run-publish: | ||
name: 📦 Dry Run Publish | ||
runs-on: Ubuntu-Latest | ||
|
||
steps: | ||
- name: 🚚 Checkout Repository | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
|
||
- name: 🦕 Setup Deno | ||
uses: denoland/setup-deno@5e01c016a857a4dbb5afe9d0f9733cd472cba985 # v1.5.1 | ||
with: | ||
deno-version: v1.x | ||
|
||
- name: 📦 Dry Run Publish | ||
run: deno publish --dry-run |
This file was deleted.
Oops, something went wrong.
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