Skip to content
/ deno Public

Simple test of Github Workspace with deno 2.0

Notifications You must be signed in to change notification settings

swimand/deno

Repository files navigation

Example GitHub Action Workflow

This is an example of a GitHub Action workflow that sets up Deno and runs tests.

name: Run Tests

on: [push, pull_request]

jobs:
  test:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Set up Deno
        uses: denoland/setup-deno@v2
        with:
          deno-version: v1.x

      - name: Run tests
        run: deno test

Upgrade to setup-deno version 2

The GitHub Action workflow has been upgraded to use setup-deno@v2. This upgrade ensures compatibility with the latest features and improvements in Deno.

To upgrade your existing workflow, update the uses field to denoland/setup-deno@v2 and specify the desired Deno version. Here is an example:

name: Run Tests

on: [push, pull_request]

jobs:
  test:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Set up Deno
        uses: denoland/setup-deno@v2
        with:
          deno-version: v2.x

      - name: Run tests
        run: deno test

About

Simple test of Github Workspace with deno 2.0

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published