1 Commits

Author SHA1 Message Date
Luca Casonato
b007aaadaa ci 2024-09-13 17:45:33 +02:00
779 changed files with 165 additions and 368 deletions

View File

@@ -17,7 +17,6 @@ jobs:
- macos-latest
deno:
- "1.x"
- "2.x"
- "1.33.1"
- "canary"
- "~1.32"
@@ -47,6 +46,19 @@ jobs:
deno install --allow-net -n deno_curl https://deno.land/std@0.198.0/examples/curl.ts
deno_curl https://deno.land/std@0.198.0/examples/curl.ts
test-not-local:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Deno
# install the extension from this repo using the current commit hash
uses: denoland/setup-deno@${{github.sha}}
with:
deno-version: 1.x
- name: Test Deno
run: deno -V
test-version-file:
runs-on: ubuntu-latest
strategy:

View File

@@ -7,9 +7,9 @@ Set up your GitHub Actions workflow with a specific version of Deno.
### Latest stable for a major
```yaml
- uses: denoland/setup-deno@v2
- uses: denoland/setup-deno@v1
with:
deno-version: v2.x
deno-version: v1.x
```
### Latest stable for any major
@@ -17,7 +17,7 @@ Set up your GitHub Actions workflow with a specific version of Deno.
Targets the latest major, minor and patch version of Deno.
```yaml
- uses: denoland/setup-deno@v2
- uses: denoland/setup-deno@v1
with:
deno-version: vx.x.x
```
@@ -25,7 +25,7 @@ Targets the latest major, minor and patch version of Deno.
### Specific stable
```yaml
- uses: denoland/setup-deno@v2
- uses: denoland/setup-deno@v1
with:
deno-version: "1.8.2"
```
@@ -33,7 +33,7 @@ Targets the latest major, minor and patch version of Deno.
### Semver range
```yaml
- uses: denoland/setup-deno@v2
- uses: denoland/setup-deno@v1
with:
deno-version: "~1.7"
```
@@ -41,7 +41,7 @@ Targets the latest major, minor and patch version of Deno.
### Latest canary
```yaml
- uses: denoland/setup-deno@v2
- uses: denoland/setup-deno@v1
with:
deno-version: canary
```
@@ -49,7 +49,7 @@ Targets the latest major, minor and patch version of Deno.
### Specific canary
```yaml
- uses: denoland/setup-deno@v2
- uses: denoland/setup-deno@v1
with:
deno-version: e7b7129b7a92b7500ded88f8f5baa25a7f59e56e
```
@@ -57,7 +57,7 @@ Targets the latest major, minor and patch version of Deno.
### Latest release candidate
```yaml
- uses: denoland/setup-deno@v2
- uses: denoland/setup-deno@v1
with:
deno-version: rc
```
@@ -65,7 +65,7 @@ Targets the latest major, minor and patch version of Deno.
### Specific release candidate
```yaml
- uses: denoland/setup-deno@v2
- uses: denoland/setup-deno@v1
with:
deno-version: 2.0.0-rc.1
```
@@ -76,7 +76,7 @@ The extension can also automatically read the version file from
[`.tool-versions`](https://asdf-vm.com/manage/configuration.html#tool-versions)
```yaml
- uses: denoland/setup-deno@v2
- uses: denoland/setup-deno@v1
with:
deno-version-file: .tool-versions
```
@@ -85,7 +85,7 @@ The extension can also automatically read the file from
[`dvm`](https://github.com/justjavac/dvm).
```yaml
- uses: denoland/setup-deno@v2
- uses: denoland/setup-deno@v1
with:
deno-version-file: .dvmrc
```
@@ -95,7 +95,7 @@ The extension can also automatically read the file from
This is useful when you want to install different versions of Deno side by side.
```yaml
- uses: denoland/setup-deno@v2
- uses: denoland/setup-deno@v1
with:
deno-version: canary
deno-binary-name: deno_canary
@@ -108,7 +108,7 @@ You can determine the release channel reading back the `release-channel` output.
Valid values are `stable`, `canary` and `rc`.
```yaml
- uses: denoland/setup-deno@v2
- uses: denoland/setup-deno@v1
id: deno
with:
deno-version: canary
@@ -126,7 +126,7 @@ For stable and rc versions, the output will be the regular semver version
number.
```yaml
- uses: denoland/setup-deno@v2
- uses: denoland/setup-deno@v1
id: deno
with:
deno-version: canary

View File

@@ -7,7 +7,7 @@ branding:
inputs:
deno-version:
description: The Deno version to install. Can be a semver version of a stable release, "canary" for the latest canary, or the Git hash of a specific canary release.
default: "2.x"
default: "1.x"
deno-version-file:
description: File containing the Deno version to install such as .dvmrc or .tool-versions.
deno-binary-name:
@@ -16,6 +16,8 @@ inputs:
outputs:
deno-version:
description: "The Deno version that was installed."
is-canary:
description: "If the installed Deno version was a canary version."
release-channel:
description: "The release channel of the installed version."
runs:

View File

@@ -1,21 +0,0 @@
{
"problemMatcher": [
{
"owner": "deno-lint",
"pattern": [
{
"regexp": "^(?:\\x1B\\[[0-9;]*[a-zA-Z])*(warning|warn|error)(?:\\[(\\S*)\\])?(?:\\x1B\\[[0-9;]*[a-zA-Z])*: (.*?)(?:\\x1B\\[[0-9;]*[a-zA-Z])*$",
"severity": 1,
"code": 2,
"message": 3
},
{
"regexp": "^(?:\\s*)(?:\\x1B\\[[0-9;]*[a-zA-Z])*-->(?:\\x1B\\[[0-9;]*[a-zA-Z])* (?:\\x1B\\[[0-9;]*[a-zA-Z])*(\\S+?)(?:\\x1B\\[[0-9;]*[a-zA-Z])*:(\\d+):(\\d+)(?:\\x1B\\[[0-9;]*[a-zA-Z])*$",
"file": 1,
"line": 2,
"column": 3
}
]
}
]
}

98
deno.lock generated Normal file
View File

@@ -0,0 +1,98 @@
{
"version": "4",
"specifiers": {
"npm:@actions/core@^1.10.1": "1.10.1",
"npm:@actions/tool-cache@^2.0.1": "2.0.1",
"npm:@types/node@^20.16.5": "20.16.5",
"npm:@types/semver@^7.5.8": "7.5.8",
"npm:semver@^7.6.3": "7.6.3",
"npm:undici@^6.19.8": "6.19.8"
},
"npm": {
"@actions/core@1.10.1": {
"integrity": "sha512-3lBR9EDAY+iYIpTnTIXmWcNbX3T2kCkAEQGIQx4NVQ0575nk2k3GRZDTPQG+vVtS2izSLmINlxXf0uLtnrTP+g==",
"dependencies": [
"@actions/http-client",
"uuid@8.3.2"
]
},
"@actions/exec@1.1.1": {
"integrity": "sha512-+sCcHHbVdk93a0XT19ECtO/gIXoxvdsgQLzb2fE2/5sIZmWQuluYyjPQtrtTHdU1YzTZ7bAPN4sITq2xi1679w==",
"dependencies": [
"@actions/io"
]
},
"@actions/http-client@2.2.3": {
"integrity": "sha512-mx8hyJi/hjFvbPokCg4uRd4ZX78t+YyRPtnKWwIl+RzNaVuFpQHfmlGVfsKEJN8LwTCvL+DfVgAM04XaHkm6bA==",
"dependencies": [
"tunnel",
"undici@5.28.4"
]
},
"@actions/io@1.1.3": {
"integrity": "sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q=="
},
"@actions/tool-cache@2.0.1": {
"integrity": "sha512-iPU+mNwrbA8jodY8eyo/0S/QqCKDajiR8OxWTnSk/SnYg0sj8Hp4QcUEVC1YFpHWXtrfbQrE13Jz4k4HXJQKcA==",
"dependencies": [
"@actions/core",
"@actions/exec",
"@actions/http-client",
"@actions/io",
"semver@6.3.1",
"uuid@3.4.0"
]
},
"@fastify/busboy@2.1.1": {
"integrity": "sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA=="
},
"@types/node@20.16.5": {
"integrity": "sha512-VwYCweNo3ERajwy0IUlqqcyZ8/A7Zwa9ZP3MnENWcB11AejO+tLy3pu850goUW2FC/IJMdZUfKpX/yxL1gymCA==",
"dependencies": [
"undici-types"
]
},
"@types/semver@7.5.8": {
"integrity": "sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ=="
},
"semver@6.3.1": {
"integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="
},
"semver@7.6.3": {
"integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A=="
},
"tunnel@0.0.6": {
"integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg=="
},
"undici-types@6.19.8": {
"integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw=="
},
"undici@5.28.4": {
"integrity": "sha512-72RFADWFqKmUb2hmmvNODKL3p9hcB6Gt2DOQMis1SEBaV6a4MH8soBvzg+95CYhCKPFedut2JY9bMfrDl9D23g==",
"dependencies": [
"@fastify/busboy"
]
},
"undici@6.19.8": {
"integrity": "sha512-U8uCCl2x9TK3WANvmBavymRzxbfFYG+tAu+fgx3zxQy3qdagQqBLwJVrdyO1TBfUXvfKveMKJZhpvUYoOjM+4g=="
},
"uuid@3.4.0": {
"integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A=="
},
"uuid@8.3.2": {
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg=="
}
},
"workspace": {
"packageJson": {
"dependencies": [
"npm:@actions/core@^1.10.1",
"npm:@actions/tool-cache@^2.0.1",
"npm:@types/node@^20.16.5",
"npm:@types/semver@^7.5.8",
"npm:semver@^7.6.3",
"npm:undici@^6.19.8"
]
}
}
}

View File

@@ -1,6 +1,5 @@
import process from "node:process";
import core from "@actions/core";
import path from "node:path";
import {
getDenoVersionFromFile,
parseVersionRange,
@@ -39,13 +38,9 @@ async function main() {
await install(version);
core.info(
`::add-matcher::${
path.join(import.meta.dirname ?? ".", "deno-problem-matchers.json")
}`,
);
core.setOutput("deno-version", version.version);
// TODO(@crowlKats): remove in 2.0
core.setOutput("is-canary", version.kind === "canary");
core.setOutput("release-channel", version.kind);
core.info("Installation complete.");

2
node_modules/.bin/semver generated vendored
View File

@@ -1 +1 @@
../semver/bin/semver.js
../.deno/semver@7.6.3/node_modules/semver/bin/semver.js

2
node_modules/.bin/uuid generated vendored
View File

@@ -1 +1 @@
../uuid/dist/bin/uuid
../.deno/uuid@8.3.2/node_modules/uuid/dist/bin/uuid

1
node_modules/.deno/.deno.lock.poll generated vendored Normal file
View File

@@ -0,0 +1 @@
1

BIN
node_modules/.deno/.setup-cache.bin generated vendored Normal file

Binary file not shown.

0
node_modules/.deno/@actions+core@1.10.1/.initialized generated vendored Normal file
View File

View File

@@ -0,0 +1 @@
../../../@actions+http-client@2.2.3/node_modules/@actions/http-client

View File

@@ -0,0 +1 @@
../../uuid@8.3.2/node_modules/uuid

0
node_modules/.deno/@actions+exec@1.1.1/.initialized generated vendored Normal file
View File

View File

@@ -0,0 +1 @@
../../../@actions+io@1.1.3/node_modules/@actions/io

View File

View File

@@ -0,0 +1 @@
../../tunnel@0.0.6/node_modules/tunnel

View File

@@ -0,0 +1 @@
../../undici@5.28.4/node_modules/undici

0
node_modules/.deno/@actions+io@1.1.3/.initialized generated vendored Normal file
View File

View File

View File

@@ -0,0 +1 @@
../../../@actions+core@1.10.1/node_modules/@actions/core

View File

@@ -0,0 +1 @@
../../../@actions+exec@1.1.1/node_modules/@actions/exec

View File

@@ -0,0 +1 @@
../../../@actions+http-client@2.2.3/node_modules/@actions/http-client

View File

@@ -0,0 +1 @@
../../../@actions+io@1.1.3/node_modules/@actions/io

View File

@@ -0,0 +1 @@
../../semver@6.3.1/node_modules/semver

Some files were not shown because too many files have changed in this diff Show More