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

denolib/setup-deno

Repository files navigation

setup-deno

GitHub Actions status

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

Basic:

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:

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

Contributions

Contributions are welcome! See Contributor's Guide