-
Notifications
You must be signed in to change notification settings - Fork 633
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create ci.yml chore: add wasi-test-suite as a submodule chore: remove legacy configuration files and scripts chore: remove outdated redirection notice chore: add git attributes to ensure text files use unix line endings chore: format test(http): copy tls testdata from denoland/deno
- Loading branch information
1 parent
bfe3281
commit d5bad95
Showing
30 changed files
with
428 additions
and
355 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Use Unix line endings in all text files. | ||
* text=auto eol=lf |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 30 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
deno-version: [nightly] | ||
os: [macOS-latest, ubuntu-latest, windows-2019] | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
persist-credentials: false | ||
|
||
- name: Install Deno | ||
uses: denolib/setup-deno@master | ||
with: | ||
deno-version: ${{ matrix.deno-version }} | ||
|
||
- name: Test | ||
run: deno test --unstable --allow-all | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: false | ||
persist-credentials: false | ||
|
||
- name: Install Deno | ||
uses: denolib/setup-deno@master | ||
with: | ||
deno-version: nightly | ||
|
||
- name: Format | ||
run: deno fmt --check --ignore=node/tests/node_modules,hash/_wasm | ||
|
||
- name: Lint | ||
run: deno lint --unstable --ignore=node/tests/node_modules,hash/_wasm |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[submodule "std/wasi/testdata"] | ||
path = wasi/testdata | ||
url = https://github.com/khronosproject/wasi-test-suite.git | ||
shallow = true |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { emptyDirSync } from "../empty_dir.ts"; | ||
|
||
try { | ||
emptyDirSync(Deno.args[0]) | ||
Deno.stdout.write(new TextEncoder().encode("success")) | ||
emptyDirSync(Deno.args[0]); | ||
Deno.stdout.write(new TextEncoder().encode("success")); | ||
} catch (err) { | ||
Deno.stdout.write(new TextEncoder().encode(err.message)) | ||
} | ||
Deno.stdout.write(new TextEncoder().encode(err.message)); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
import { exists } from "../exists.ts"; | ||
|
||
exists(Deno.args[0]) | ||
.then(isExist => { | ||
Deno.stdout.write(new TextEncoder().encode(isExist ? 'exist' :'not exist')) | ||
.then((isExist) => { | ||
Deno.stdout.write( | ||
new TextEncoder().encode(isExist ? "exist" : "not exist"), | ||
); | ||
}) | ||
.catch((err) => { | ||
Deno.stdout.write(new TextEncoder().encode(err.message)) | ||
}) | ||
|
||
Deno.stdout.write(new TextEncoder().encode(err.message)); | ||
}); |
This file contains 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
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
The certificates in this dir expire on Sept, 27th, 2118 | ||
|
||
Certificates generated using original instructions from this gist: | ||
https://gist.github.com/cecilemuller/9492b848eb8fe46d462abeb26656c4f8 | ||
|
||
## Certificate authority (CA) | ||
|
||
Generate RootCA.pem, RootCA.key, RootCA.crt: | ||
|
||
```shell | ||
openssl req -x509 -nodes -new -sha256 -days 36135 -newkey rsa:2048 -keyout RootCA.key -out RootCA.pem -subj "/C=US/CN=Example-Root-CA" | ||
openssl x509 -outform pem -in RootCA.pem -out RootCA.crt | ||
``` | ||
|
||
Note that Example-Root-CA is an example, you can customize the name. | ||
|
||
## Domain name certificate | ||
|
||
First, create a file domains.txt that lists all your local domains (here we only | ||
list localhost): | ||
|
||
```shell | ||
authorityKeyIdentifier=keyid,issuer | ||
basicConstraints=CA:FALSE | ||
keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment | ||
subjectAltName = @alt_names | ||
[alt_names] | ||
DNS.1 = localhost | ||
``` | ||
|
||
Generate localhost.key, localhost.csr, and localhost.crt: | ||
|
||
```shell | ||
openssl req -new -nodes -newkey rsa:2048 -keyout localhost.key -out localhost.csr -subj "/C=US/ST=YourState/L=YourCity/O=Example-Certificates/CN=localhost.local" | ||
openssl x509 -req -sha256 -days 36135 -in localhost.csr -CA RootCA.pem -CAkey RootCA.key -CAcreateserial -extfile domains.txt -out localhost.crt | ||
``` | ||
|
||
Note that the country / state / city / name in the first command can be | ||
customized. | ||
|
||
For testing purposes we need following files: | ||
|
||
- `RootCA.crt` | ||
- `RootCA.key` | ||
- `RootCA.pem` | ||
- `localhost.crt` | ||
- `localhost.key` |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIDIzCCAgugAwIBAgIJAMKPPW4tsOymMA0GCSqGSIb3DQEBCwUAMCcxCzAJBgNV | ||
BAYTAlVTMRgwFgYDVQQDDA9FeGFtcGxlLVJvb3QtQ0EwIBcNMTkxMDIxMTYyODIy | ||
WhgPMjExODA5MjcxNjI4MjJaMCcxCzAJBgNVBAYTAlVTMRgwFgYDVQQDDA9FeGFt | ||
cGxlLVJvb3QtQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDMH/IO | ||
2qtHfyBKwANNPB4K0q5JVSg8XxZdRpTTlz0CwU0oRO3uHrI52raCCfVeiQutyZop | ||
eFZTDWeXGudGAFA2B5m3orWt0s+touPi8MzjsG2TQ+WSI66QgbXTNDitDDBtTVcV | ||
5G3Ic+3SppQAYiHSekLISnYWgXLl+k5CnEfTowg6cjqjVr0KjL03cTN3H7b+6+0S | ||
ws4rYbW1j4ExR7K6BFNH6572yq5qR20E6GqlY+EcOZpw4CbCk9lS8/CWuXze/vMs | ||
OfDcc6K+B625d27wyEGZHedBomT2vAD7sBjvO8hn/DP1Qb46a8uCHR6NSfnJ7bXO | ||
G1igaIbgY1zXirNdAgMBAAGjUDBOMB0GA1UdDgQWBBTzut+pwwDfqmMYcI9KNWRD | ||
hxcIpTAfBgNVHSMEGDAWgBTzut+pwwDfqmMYcI9KNWRDhxcIpTAMBgNVHRMEBTAD | ||
AQH/MA0GCSqGSIb3DQEBCwUAA4IBAQB9AqSbZ+hEglAgSHxAMCqRFdhVu7MvaQM0 | ||
P090mhGlOCt3yB7kdGfsIrUW6nQcTz7PPQFRaJMrFHPvFvPootkBUpTYR4hTkdce | ||
H6RCRu2Jxl4Y9bY/uezd9YhGCYfUtfjA6/TH9FcuZfttmOOlxOt01XfNvVMIR6RM | ||
z/AYhd+DeOXjr35F/VHeVpnk+55L0PYJsm1CdEbOs5Hy1ecR7ACuDkXnbM4fpz9I | ||
kyIWJwk2zJReKcJMgi1aIinDM9ao/dca1G99PHOw8dnr4oyoTiv8ao6PWiSRHHMi | ||
MNf4EgWfK+tZMnuqfpfO9740KzfcVoMNo4QJD4yn5YxroUOO/Azi | ||
-----END CERTIFICATE----- |
Oops, something went wrong.