5 Commits

Author SHA1 Message Date
Leo Kettmeir
1c4873e05d 2.0.1 (#86) 2024-10-09 02:01:02 -07:00
Leo Kettmeir
4b0db74aa8 fix: update README and tests (#85) 2024-10-09 09:54:03 +01:00
Luca Casonato
4606d5cc6f feat: v2 (#82)
Co-authored-by: crowlkats <crowlkats@toaxl.com>
2024-10-09 01:37:44 -07:00
Luca Casonato
5e01c016a8 1.5.1 (#78) 2024-09-13 18:59:54 +02:00
Luca Casonato
90ced52839 fix: use npm install (#77) 2024-09-13 18:57:49 +02:00
777 changed files with 325 additions and 161 deletions

View File

@@ -17,6 +17,7 @@ jobs:
- macos-latest - macos-latest
deno: deno:
- "1.x" - "1.x"
- "2.x"
- "1.33.1" - "1.33.1"
- "canary" - "canary"
- "~1.32" - "~1.32"
@@ -46,19 +47,6 @@ jobs:
deno install --allow-net -n deno_curl https://deno.land/std@0.198.0/examples/curl.ts 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 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: test-version-file:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:

View File

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

View File

@@ -7,7 +7,7 @@ branding:
inputs: inputs:
deno-version: 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. 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: "1.x" default: "2.x"
deno-version-file: deno-version-file:
description: File containing the Deno version to install such as .dvmrc or .tool-versions. description: File containing the Deno version to install such as .dvmrc or .tool-versions.
deno-binary-name: deno-binary-name:
@@ -16,8 +16,6 @@ inputs:
outputs: outputs:
deno-version: deno-version:
description: "The Deno version that was installed." description: "The Deno version that was installed."
is-canary:
description: "If the installed Deno version was a canary version."
release-channel: release-channel:
description: "The release channel of the installed version." description: "The release channel of the installed version."
runs: runs:

98
deno.lock generated
View File

@@ -1,98 +0,0 @@
{
"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

@@ -39,8 +39,6 @@ async function main() {
await install(version); await install(version);
core.setOutput("deno-version", version.version); 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.setOutput("release-channel", version.kind);
core.info("Installation complete."); core.info("Installation complete.");

2
node_modules/.bin/semver generated vendored
View File

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

2
node_modules/.bin/uuid generated vendored
View File

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

0
node_modules/.deno/.deno.lock generated vendored
View File

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

@@ -1 +0,0 @@
1

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

Binary file not shown.

View File

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

View File

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

View File

View File

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

View File

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

View File

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

View File

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

View File

@@ -1 +0,0 @@
../../undici-types@6.19.8/node_modules/undici-types

View File

View File

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

View File

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

View File

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

View File

@@ -1 +0,0 @@
../../@fastify+busboy@2.1.1/node_modules/@fastify/busboy

View File

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

View File

@@ -1 +0,0 @@
../undici-types@6.19.8/node_modules/undici-types

View File

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

View File

View File

View File

View File

View File

View File

@@ -1 +0,0 @@
../../../@fastify+busboy@2.1.1/node_modules/@fastify/busboy

View File

View File

View File

144
node_modules/.package-lock.json generated vendored Normal file
View File

@@ -0,0 +1,144 @@
{
"name": "setup-deno",
"version": "1.5.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"node_modules/@actions/core": {
"version": "1.10.1",
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.1.tgz",
"integrity": "sha512-3lBR9EDAY+iYIpTnTIXmWcNbX3T2kCkAEQGIQx4NVQ0575nk2k3GRZDTPQG+vVtS2izSLmINlxXf0uLtnrTP+g==",
"dependencies": {
"@actions/http-client": "^2.0.1",
"uuid": "^8.3.2"
}
},
"node_modules/@actions/exec": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.1.1.tgz",
"integrity": "sha512-+sCcHHbVdk93a0XT19ECtO/gIXoxvdsgQLzb2fE2/5sIZmWQuluYyjPQtrtTHdU1YzTZ7bAPN4sITq2xi1679w==",
"dependencies": {
"@actions/io": "^1.0.1"
}
},
"node_modules/@actions/http-client": {
"version": "2.2.3",
"resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.2.3.tgz",
"integrity": "sha512-mx8hyJi/hjFvbPokCg4uRd4ZX78t+YyRPtnKWwIl+RzNaVuFpQHfmlGVfsKEJN8LwTCvL+DfVgAM04XaHkm6bA==",
"dependencies": {
"tunnel": "^0.0.6",
"undici": "^5.25.4"
}
},
"node_modules/@actions/http-client/node_modules/undici": {
"version": "5.28.4",
"resolved": "https://registry.npmjs.org/undici/-/undici-5.28.4.tgz",
"integrity": "sha512-72RFADWFqKmUb2hmmvNODKL3p9hcB6Gt2DOQMis1SEBaV6a4MH8soBvzg+95CYhCKPFedut2JY9bMfrDl9D23g==",
"dependencies": {
"@fastify/busboy": "^2.0.0"
},
"engines": {
"node": ">=14.0"
}
},
"node_modules/@actions/io": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/@actions/io/-/io-1.1.3.tgz",
"integrity": "sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q=="
},
"node_modules/@actions/tool-cache": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/@actions/tool-cache/-/tool-cache-2.0.1.tgz",
"integrity": "sha512-iPU+mNwrbA8jodY8eyo/0S/QqCKDajiR8OxWTnSk/SnYg0sj8Hp4QcUEVC1YFpHWXtrfbQrE13Jz4k4HXJQKcA==",
"dependencies": {
"@actions/core": "^1.2.6",
"@actions/exec": "^1.0.0",
"@actions/http-client": "^2.0.1",
"@actions/io": "^1.1.1",
"semver": "^6.1.0",
"uuid": "^3.3.2"
}
},
"node_modules/@actions/tool-cache/node_modules/semver": {
"version": "6.3.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
"integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
"bin": {
"semver": "bin/semver.js"
}
},
"node_modules/@actions/tool-cache/node_modules/uuid": {
"version": "3.4.0",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz",
"integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==",
"deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.",
"bin": {
"uuid": "bin/uuid"
}
},
"node_modules/@fastify/busboy": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.1.tgz",
"integrity": "sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA==",
"engines": {
"node": ">=14"
}
},
"node_modules/@types/node": {
"version": "20.16.5",
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.16.5.tgz",
"integrity": "sha512-VwYCweNo3ERajwy0IUlqqcyZ8/A7Zwa9ZP3MnENWcB11AejO+tLy3pu850goUW2FC/IJMdZUfKpX/yxL1gymCA==",
"dev": true,
"dependencies": {
"undici-types": "~6.19.2"
}
},
"node_modules/@types/semver": {
"version": "7.5.8",
"resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.8.tgz",
"integrity": "sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==",
"dev": true
},
"node_modules/semver": {
"version": "7.6.3",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz",
"integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==",
"bin": {
"semver": "bin/semver.js"
},
"engines": {
"node": ">=10"
}
},
"node_modules/tunnel": {
"version": "0.0.6",
"resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz",
"integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==",
"engines": {
"node": ">=0.6.11 <=0.7.0 || >=0.7.3"
}
},
"node_modules/undici": {
"version": "6.19.8",
"resolved": "https://registry.npmjs.org/undici/-/undici-6.19.8.tgz",
"integrity": "sha512-U8uCCl2x9TK3WANvmBavymRzxbfFYG+tAu+fgx3zxQy3qdagQqBLwJVrdyO1TBfUXvfKveMKJZhpvUYoOjM+4g==",
"engines": {
"node": ">=18.17"
}
},
"node_modules/undici-types": {
"version": "6.19.8",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz",
"integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==",
"dev": true
},
"node_modules/uuid": {
"version": "8.3.2",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
"bin": {
"uuid": "dist/bin/uuid"
}
}
}
}

1
node_modules/@actions/core generated vendored
View File

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

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