Created
February 24, 2025 20:49
-
-
Save lynsei/d201ccf323a31abe881d79ca78f45624 to your computer and use it in GitHub Desktop.
#Deno in #GithubActions
This file contains hidden or 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
name: "Deno Action" | |
description: "A GitHub Action using Deno" | |
inputs: | |
name: | |
description: "Name to greet" | |
required: true | |
runs: | |
using: "composite" | |
steps: | |
- run: deno run --allow-env --allow-net https://deno.land/std/examples/welcome.ts | |
shell: bash |
This file contains hidden or 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
name: "Deno Docker Action" | |
description: "Runs a Deno script in a container" | |
runs: | |
using: "docker" | |
image: "Dockerfile" | |
FROM denoland/deno:alpine | |
COPY script.ts /script.ts | |
CMD ["run", "--allow-net", "/script.ts"] |
This file contains hidden or 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
jobs: | |
run-deno-action: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: ./.github/actions/deno-action | |
with: | |
name: "GitHub Actions" |
This file contains hidden or 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
name: Run Deno Script | |
on: [push, pull_request] | |
jobs: | |
run-deno: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Run a Deno script | |
run: deno run --allow-read script.ts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment