Skip to content

Commit

Permalink
ci: V2 checks
Browse files Browse the repository at this point in the history
  • Loading branch information
joscha committed Oct 8, 2024
2 parents 9e4f8a7 + 374e498 commit 0a3e036
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 36 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ jobs:
run: deno task format
- name: Check types
run: deno task check
- name: Regenerate V2
uses: nickcharlton/diff-check@main
with:
command: deno task generate-v2-client
- name: V2 Smoke Test
run: deno task test:single src/v2/tests/smoke_test.ts
- name: Test
run: deno task test:coverage
- name: Archive code coverage results
Expand Down
4 changes: 2 additions & 2 deletions deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"imports": {
"@deno/dnt": "jsr:@deno/dnt@^0.41.2",
"@deno/dnt": "jsr:@deno/dnt@^0.41.3",
"@std/assert": "jsr:@std/assert@^1.0.0",
"@std/fs": "jsr:@std/fs@^1.0.0",
"@std/jsonc": "jsr:@std/jsonc@^1.0.0",
Expand All @@ -24,7 +24,7 @@
"snapshot-update": "deno task test --allow-write=./src/v1/tests/__snapshots__,./src/v2/tests/__snapshots__ -- --update",
"format": "deno fmt && nixpkgs-fmt *.nix && yamllint . && yamlfmt .",
"lint": "deno lint",
"docs": "deno run --allow-read --allow-env --allow-run --allow-write=./docs/ npm:[email protected].6",
"docs": "deno run --allow-read --allow-env --allow-run --allow-write=./docs/ npm:[email protected].7",
"generate-v2-client": "rm -rf src/v2/generated && deno run --allow-read --allow-run --allow-env --allow-write=openapitools.json,node_modules,/tmp,/var --allow-net='search.maven.org,repo1.maven.org,oss.sonatype.org:443' npm:@openapitools/[email protected] generate",
"update-deno-lock": "deno cache --lock-write src/index.ts",
"update-flake-lock": "nix --option commit-lockfile-summary 'chore: update flake.lock' flake update --commit-lock-file",
Expand Down
33 changes: 8 additions & 25 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@
# can't use slim here as long as we still publish with npm.
# TODO(@joscha) change this once we only publish to jsr only
nodejs_20
# For openapi-generator
# If more dependencies are needed, investigate whether to load https://github.com/OpenAPITools/openapi-generator/blob/master/flake.nix
jdk11
jre
yamllint
yamlfmt
];
Expand Down

0 comments on commit 0a3e036

Please sign in to comment.