This repository has been archived by the owner on Oct 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Showing
1 changed file
with
1 addition
and
58 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,58 +1 @@ | ||
# setup-deno | ||
|
||
[![GitHub Actions status](https://github.com/denolib/setup-deno/workflows/ci/badge.svg?branch=master)](https://github.com/denolib/setup-deno/actions) | ||
|
||
This action sets up deno environment for use in actions by: | ||
|
||
- optionally downloading and caching a version of deno - versioned and add to | ||
PATH | ||
- registering problem matchers for error output | ||
|
||
# Usage | ||
|
||
See [action.yml](action.yml) | ||
|
||
Basic: | ||
|
||
```yaml | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: denolib/setup-deno@v2 | ||
with: | ||
deno-version: v1.x | ||
- run: | | ||
deno --version | ||
deno run https://deno.land/std/examples/welcome.ts | ||
deno install --allow-read -n deno_cat https://deno.land/std/examples/cat.ts | ||
deno_cat ./README.md | ||
``` | ||
Matrix Testing: | ||
```yaml | ||
jobs: | ||
build: | ||
runs-on: ubuntu-16.04 | ||
strategy: | ||
matrix: | ||
deno: ["v1.0.0", "v0.42.0", "v1.x", "v0.x", "nightly"] | ||
name: Deno ${{ matrix.deno }} sample | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Deno | ||
uses: denolib/setup-deno@v2 | ||
with: | ||
deno-version: ${{ matrix.deno }} | ||
- run: | | ||
deno --version | ||
deno run https://deno.land/std/examples/welcome.ts | ||
``` | ||
# License | ||
The scripts and documentation in this project are released under the | ||
[MIT License](LICENSE) | ||
# Contributions | ||
Contributions are welcome! See [Contributor's Guide](docs/contributors.md) | ||
# Move to [denoland/setup-deno](https://github.com/denoland/setup-deno) |