-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fc37084
commit 48cc663
Showing
3 changed files
with
55 additions
and
2 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,47 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
test: | ||
name: test-${{ matrix.os }}-${{ matrix.deno }} | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
# Test on the oldest supported, the latest stable, and nightly | ||
deno: [old, stable, canary] | ||
os: [macOS-latest, windows-latest, ubuntu-latest-xl] | ||
|
||
steps: | ||
- name: Setup repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Deno | ||
run: | | ||
curl -fsSL https://deno.land/x/install/install.sh | sh ${{ matrix.deno == 'old' && '-s v1.8.0' || '' }} | ||
echo "$HOME/.deno/bin" >> $${{ runner.os == 'Windows' && 'env:' || '' }}GITHUB_PATH | ||
- name: Upgrade to Deno canary | ||
if: matrix.deno == 'canary' | ||
run: deno upgrade --canary | ||
|
||
- run: deno --version | ||
|
||
- name: Format | ||
if: runner.os == 'Linux' | ||
run: deno fmt --check | ||
|
||
- name: Lint | ||
if: runner.os == 'Linux' | ||
run: deno lint --unstable | ||
|
||
- name: Typecheck | ||
run: deno cache deployctl.ts | ||
|
||
# - name: Run tests | ||
# run: deno test -A |
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,3 +1,9 @@ | ||
bundle: | ||
echo "// Copyright 2021 Deno Land Inc. All rights reserved. MIT license.\n// deno-lint-ignore-file\n// deno-fmt-ignore-file" > src/runtime.bundle.js | ||
deno bundle src/runtime.js >> src/runtime.bundle.js | ||
deno bundle src/runtime.js >> src/runtime.bundle.js | ||
|
||
fmt: | ||
deno fmt | ||
|
||
lint: | ||
deno lint |