Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
archive this repo (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhmushan authored Apr 16, 2021
1 parent c76b19e commit 3c5f954
Showing 1 changed file with 1 addition and 58 deletions.
59 changes: 1 addition & 58 deletions README.md
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)

0 comments on commit 3c5f954

Please sign in to comment.