-
-
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.
Merge pull request #8 from lambdalisue/up
📦 Upgrade dependencies, etc.
- Loading branch information
Showing
5 changed files
with
48 additions
and
57 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 |
---|---|---|
@@ -1,59 +1,55 @@ | ||
name: Test | ||
|
||
env: | ||
DENO_VERSION: 1.x | ||
|
||
on: | ||
schedule: | ||
- cron: "0 7 * * 0" | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
check: | ||
strategy: | ||
matrix: | ||
runner: | ||
- ubuntu-latest | ||
version: | ||
- "1.x" | ||
- "1.28.x" | ||
runs-on: ${{ matrix.runner }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: denoland/setup-deno@main | ||
- uses: actions/checkout@v3 | ||
- uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: ${{ env.DENO_VERSION }} | ||
- name: Lint | ||
run: deno lint | ||
|
||
format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: denoland/setup-deno@main | ||
with: | ||
deno-version: ${{ env.DENO_VERSION }} | ||
- name: Format | ||
deno-version: "${{ matrix.version }}" | ||
- name: Lint check | ||
run: | | ||
make lint | ||
- name: Format check | ||
run: | | ||
deno fmt --check | ||
make fmt-check | ||
- name: Type check | ||
run: | | ||
make type-check | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
runner: | ||
- windows-latest | ||
- macos-latest | ||
- ubuntu-latest | ||
version: | ||
- "1.x" | ||
- "1.28.x" | ||
runs-on: ${{ matrix.runner }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: denoland/setup-deno@main | ||
- uses: actions/checkout@v3 | ||
- uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: ${{ env.DENO_VERSION }} | ||
deno-version: "${{ matrix.version }}" | ||
- name: Test | ||
run: | | ||
deno test | ||
make test | ||
timeout-minutes: 5 | ||
|
||
typecheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: denoland/setup-deno@main | ||
with: | ||
deno-version: ${{ env.DENO_VERSION }} | ||
- name: Type check | ||
run: | | ||
deno test --unstable --no-run ./*.ts |
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
TOOLS := ${CURDIR}/.tools | ||
TARGETS := $$(find . -name '*.ts' -or -name '*.md') | ||
|
||
.DEFAULT_GOAL := help | ||
|
||
|
@@ -7,27 +7,23 @@ help: | |
perl -ne 'print if /^\w+.*##/;' | \ | ||
perl -pe 's/(.*):.*##\s*/sprintf("%-20s",$$1)/eg;' | ||
|
||
tools: FORCE ## Install development tools | ||
@mkdir -p ${TOOLS} | ||
@deno install -A -f -n udd --root ${TOOLS} https://deno.land/x/[email protected]/main.ts | ||
|
||
fmt: FORCE ## Format code | ||
@deno fmt --ignore=.deno | ||
@deno fmt | ||
|
||
fmt-check: FORCE ## Format check | ||
@deno fmt --check --ignore=.deno | ||
@deno fmt --check | ||
|
||
lint: FORCE ## Lint code | ||
@deno lint --ignore=.deno | ||
@deno lint | ||
|
||
type-check: FORCE ## Type check | ||
@deno test --unstable --no-run $$(find . -name '*.ts' -not -name '.deno') | ||
@deno test --no-run ${TARGETS} | ||
|
||
test: FORCE ## Test | ||
@deno test --no-check --unstable -A --jobs | ||
@deno test -A --no-check | ||
|
||
update: FORCE ## Update dependencies | ||
@${TOOLS}/bin/udd $$(find . -name '*.ts' -not -name '.deno') | ||
deps: FORCE ## Update dependencies | ||
@deno run -A https://deno.land/x/[email protected]/main.ts ${TARGETS} | ||
@make fmt | ||
|
||
FORCE: |
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export { expect } from "https://deno.land/x/[email protected].9/mod.ts"; | ||
export * from "https://deno.land/std@0.110.0/testing/asserts.ts"; | ||
export { expect } from "https://deno.land/x/[email protected].10/mod.ts"; | ||
export * from "https://deno.land/std@0.164.0/testing/asserts.ts"; | ||
|
||
const currentScopes: string[] = []; | ||
|
||
|