Skip to content

Commit

Permalink
Merge pull request #1 from dreamcatcher-tech/test-publish
Browse files Browse the repository at this point in the history
ci(files): update labeler
  • Loading branch information
inverted-capital authored Oct 23, 2024
2 parents bac00e2 + 9d92d3f commit 1100134
Show file tree
Hide file tree
Showing 17 changed files with 49 additions and 315 deletions.
125 changes: 4 additions & 121 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,123 +1,6 @@
archive:
files:
- changed-files:
- any-glob-to-any-file: archive/**
assert:
- any-glob-to-any-file: files/**
openai:
- changed-files:
- any-glob-to-any-file: assert/**
async:
- changed-files:
- any-glob-to-any-file: async/**
bytes:
- changed-files:
- any-glob-to-any-file: bytes/**
cbor:
- changed-files:
- any-glob-to-any-file: cbor/**
cli:
- changed-files:
- any-glob-to-any-file: cli/**
collections:
- changed-files:
- any-glob-to-any-file: collections/**
crypto:
- changed-files:
- any-glob-to-any-file: crypto/**
csv:
- changed-files:
- any-glob-to-any-file: csv/**
data-structures:
- changed-files:
- any-glob-to-any-file: data_structures/**
datetime:
- changed-files:
- any-glob-to-any-file: datetime/**
dotenv:
- changed-files:
- any-glob-to-any-file: dotenv/**
encoding:
- changed-files:
- any-glob-to-any-file: encoding/**
expect:
- changed-files:
- any-glob-to-any-file: expect/**
fmt:
- changed-files:
- any-glob-to-any-file: fmt/**
front-matter:
- changed-files:
- any-glob-to-any-file: front_matter/**
fs:
- changed-files:
- any-glob-to-any-file: fs/**
html:
- changed-files:
- any-glob-to-any-file: html/**
http:
- changed-files:
- any-glob-to-any-file: http/**
ini:
- changed-files:
- any-glob-to-any-file: ini/**
internal:
- changed-files:
- any-glob-to-any-file: internal/**
io:
- changed-files:
- any-glob-to-any-file: io/**
json:
- changed-files:
- any-glob-to-any-file: json/**
jsonc:
- changed-files:
- any-glob-to-any-file: jsonc/**
log:
- changed-files:
- any-glob-to-any-file: log/**
media-types:
- changed-files:
- any-glob-to-any-file: media_types/**
msgpack:
- changed-files:
- any-glob-to-any-file: msgpack/**
net:
- changed-files:
- any-glob-to-any-file: net/**
path:
- changed-files:
- any-glob-to-any-file: path/**
random:
- changed-files:
- any-glob-to-any-file: random/**
regexp:
- changed-files:
- any-glob-to-any-file: regexp/**
semver:
- changed-files:
- any-glob-to-any-file: semver/**
streams:
- changed-files:
- any-glob-to-any-file: streams/**
tar:
- changed-files:
- any-glob-to-any-file: tar/**
testing:
- changed-files:
- any-glob-to-any-file: testing/**
text:
- changed-files:
- any-glob-to-any-file: text/**
toml:
- changed-files:
- any-glob-to-any-file: toml/**
ulid:
- changed-files:
- any-glob-to-any-file: ulid/**
uuid:
- changed-files:
- any-glob-to-any-file: uuid/**
webgpu:
- changed-files:
- any-glob-to-any-file: webgpu/**
yaml:
- changed-files:
- any-glob-to-any-file: yaml/**
- any-glob-to-any-file: openai/**
8 changes: 3 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ jobs:
strategy:
fail-fast: false
matrix:
deno:
- v2.x
os:
- ubuntu-latest
- windows-latest
Expand All @@ -30,7 +28,7 @@ jobs:
- name: Set up Deno
uses: denoland/setup-deno@v2
with:
deno-version: ${{ matrix.deno }}
deno-version: v2.x

- name: Run tests
run: deno task test
Expand Down Expand Up @@ -63,7 +61,7 @@ jobs:
- name: Set up Deno
uses: denoland/setup-deno@v2
with:
deno-version: canary
deno-version: v2.x

- name: Format
run: deno fmt --check
Expand Down Expand Up @@ -91,7 +89,7 @@ jobs:
- name: Set up Deno
uses: denoland/setup-deno@v2
with:
deno-version: canary
deno-version: v2.x

- name: Publish (dry run)
run: deno publish --dry-run
2 changes: 1 addition & 1 deletion .github/workflows/workspace_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up Deno
uses: denoland/setup-deno@v2
with:
deno-version: canary
deno-version: v2.x

- name: Format
run: deno fmt --check
Expand Down
2 changes: 1 addition & 1 deletion _tools/check_browser_compat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Run using: deno run --allow-read --allow-run _tools/check_browser_compat.ts
*/

import { walk } from "../fs/walk.ts";
import { walk } from "@std/fs/walk";
import { COPYRIGHT } from "./check_licence.ts";

const ROOT = new URL("../", import.meta.url);
Expand Down
90 changes: 5 additions & 85 deletions _tools/check_circular_package_dependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from "@deno/graph";
import { resolveWorkspaceSpecifiers } from "./utils.ts";
import graphviz from "graphviz";
import { parse } from "../semver/parse.ts";
import { parse } from "@std/semver/parse";

/**
* Checks for circular dependencies in the std packages.
Expand Down Expand Up @@ -35,92 +35,12 @@ type Dep = {
state: DepState;
};
type Mod =
| "archive"
| "assert"
| "async"
| "bytes"
| "cache"
| "cbor"
| "cli"
| "collections"
| "crypto"
| "csv"
| "data_structures"
| "datetime"
| "dotenv"
| "encoding"
| "expect"
| "fmt"
| "front_matter"
| "fs"
| "html"
| "http"
| "ini"
| "internal"
| "io"
| "json"
| "jsonc"
| "log"
| "media_types"
| "msgpack"
| "net"
| "path"
| "random"
| "regexp"
| "semver"
| "streams"
| "tar"
| "testing"
| "text"
| "toml"
| "ulid"
| "uuid"
| "webgpu"
| "yaml";
| "files"
| "openai";

const ENTRYPOINTS: Record<Mod, string[]> = {
archive: ["mod.ts"],
assert: ["mod.ts"],
async: ["mod.ts"],
bytes: ["mod.ts"],
cache: ["mod.ts"],
cbor: ["mod.ts"],
cli: ["mod.ts"],
collections: ["mod.ts"],
crypto: ["mod.ts"],
csv: ["mod.ts"],
"data_structures": ["mod.ts"],
datetime: ["mod.ts"],
dotenv: ["mod.ts"],
encoding: ["mod.ts"],
expect: ["mod.ts"],
fmt: ["bytes.ts", "colors.ts", "duration.ts", "printf.ts"],
"front_matter": ["mod.ts"],
fs: ["mod.ts"],
html: ["mod.ts"],
http: ["mod.ts"],
ini: ["mod.ts"],
internal: ["mod.ts"],
io: ["mod.ts"],
json: ["mod.ts"],
jsonc: ["mod.ts"],
log: ["mod.ts"],
"media_types": ["mod.ts"],
msgpack: ["mod.ts"],
net: ["mod.ts"],
path: ["mod.ts"],
random: ["mod.ts"],
regexp: ["mod.ts"],
semver: ["mod.ts"],
streams: ["mod.ts"],
tar: ["mod.ts"],
testing: ["bdd.ts", "mock.ts", "snapshot.ts", "time.ts", "types.ts"],
text: ["mod.ts"],
toml: ["mod.ts"],
ulid: ["mod.ts"],
uuid: ["mod.ts"],
webgpu: ["mod.ts"],
yaml: ["mod.ts"],
files: ["mod.ts"],
openai: ["mod.ts"],
};

const root = new URL("../", import.meta.url).href;
Expand Down
4 changes: 2 additions & 2 deletions _tools/check_deprecation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
*/

import { doc } from "@deno/doc";
import { walk } from "../fs/walk.ts";
import { toFileUrl } from "../path/to_file_url.ts";
import { walk } from "@std/fs/walk";
import { toFileUrl } from "@std/path/to-file-url";
import { resolveWorkspaceSpecifiers } from "./utils.ts";

const ROOT = new URL("../", import.meta.url);
Expand Down
87 changes: 2 additions & 85 deletions _tools/check_docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,91 +29,8 @@ type DocNodeWithJsDoc<T = DocNodeBase> = T & {
};

const ENTRY_POINTS = [
"../archive/mod.ts",
"../assert/mod.ts",
"../assert/unstable_never.ts",
"../async/mod.ts",
"../bytes/mod.ts",
"../cache/mod.ts",
"../cbor/mod.ts",
"../cli/mod.ts",
"../cli/unstable_spinner.ts",
"../crypto/mod.ts",
"../collections/mod.ts",
"../csv/mod.ts",
"../data_structures/mod.ts",
"../data_structures/unstable_bidirectional_map.ts",
"../datetime/mod.ts",
"../dotenv/mod.ts",
"../encoding/mod.ts",
"../encoding/unstable_base64_stream.ts",
"../encoding/unstable_base32hex_stream.ts",
"../encoding/unstable_base32_stream.ts",
"../encoding/unstable_base64url_stream.ts",
"../encoding/unstable_base32hex_stream.ts",
"../encoding/unstable_hex_stream.ts",
"../expect/mod.ts",
"../fmt/bytes.ts",
"../fmt/colors.ts",
"../fmt/duration.ts",
"../fmt/printf.ts",
"../front_matter/mod.ts",
"../front_matter/unstable_yaml.ts",
"../fs/mod.ts",
"../html/mod.ts",
"../html/unstable_is_valid_custom_element_name.ts",
"../http/mod.ts",
"../http/unstable_header.ts",
"../http/unstable_method.ts",
"../http/unstable_signed_cookie.ts",
"../ini/mod.ts",
"../internal/mod.ts",
"../io/mod.ts",
"../json/mod.ts",
"../jsonc/mod.ts",
"../log/base_handler.ts",
"../log/warn.ts",
"../log/critical.ts",
"../log/debug.ts",
"../log/error.ts",
"../log/info.ts",
"../log/console_handler.ts",
"../log/formatters.ts",
"../log/get_logger.ts",
"../media_types/mod.ts",
"../msgpack/mod.ts",
"../net/mod.ts",
"../net/unstable_get_network_address.ts",
"../path/mod.ts",
"../path/unstable_basename.ts",
"../path/unstable_dirname.ts",
"../path/unstable_extname.ts",
"../path/unstable_join.ts",
"../path/unstable_normalize.ts",
"../path/posix/mod.ts",
"../path/windows/mod.ts",
"../random/mod.ts",
"../regexp/mod.ts",
"../semver/mod.ts",
"../streams/mod.ts",
"../streams/unstable_fixed_chunk_stream.ts",
"../streams/unstable_to_lines.ts",
"../streams/unstable_to_bytes.ts",
"../tar/mod.ts",
"../text/mod.ts",
"../text/unstable_slugify.ts",
"../text/unstable_to_constant_case.ts",
"../testing/bdd.ts",
"../testing/mock.ts",
"../testing/snapshot.ts",
"../testing/time.ts",
"../testing/types.ts",
"../toml/mod.ts",
"../ulid/mod.ts",
"../uuid/mod.ts",
"../uuid/unstable_v7.ts",
"../webgpu/mod.ts",
"../yaml/mod.ts",
"../files/files.ts",
"../openai/completions.ts",
] as const;

const TS_SNIPPET = /```ts[\s\S]*?```/g;
Expand Down
Loading

0 comments on commit 1100134

Please sign in to comment.