Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 54 additions & 17 deletions .github/workflows/deno-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,16 @@ jobs:
with:
deno-version: ${{ matrix.deno-version }}

- name: Cache https:// deps
- name: Cache Deno deps
uses: actions/cache@v4
with:
path: |
~/.cache/deno/deps/https
~/.cache/deno/remote/https
path: ~/.cache/deno
key: deno/${{ matrix.deno-version }}-https/v1-${{ github.sha }}
restore-keys: deno/${{ matrix.deno-version }}-https/v1-

- name: 'Possibly reset lockfile'
run: deno install || rm deno.lock

- name: Check client/mod.ts
if: always()
run: time deno check lib/client/mod.ts
Expand All @@ -56,6 +57,42 @@ jobs:
lib/encoding/
lib/extras/

check-publish:
runs-on: ubuntu-latest
name: Check JSR Publish

steps:
- uses: actions/checkout@v5

- uses: denoland/setup-deno@v2
with:
deno-version: v2.4

- name: Check publish rules
run: deno publish --dry-run --allow-dirty

publish:
runs-on: ubuntu-latest
name: JSR Publish
needs:
- build
- check-publish
if: github.event_name == 'push'

permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v5

- uses: denoland/setup-deno@v2
with:
deno-version: v2.4

- name: Publish now
run: deno publish

build-web-service:
runs-on: ubuntu-latest

Expand All @@ -78,18 +115,19 @@ jobs:
with:
deno-version: ${{ matrix.deno-version }}

- name: Cache https:// deps
- name: Cache Deno deps
uses: actions/cache@v4
with:
path: |
~/.cache/deno/deps/https
~/.cache/deno/remote/https
path: ~/.cache/deno
key: deno/${{ matrix.deno-version }}-https/v1-${{ github.sha }}
restore-keys: deno/${{ matrix.deno-version }}-https/v1-

- name: 'Possibly reset lockfile'
run: deno install || rm deno.lock

- name: Check generation/deploy/mod.ts
if: always()
run: time deno check --allow-import=cdn.skypack.dev,deno.land generation/deploy/mod.ts
run: time deno check generation/deploy/mod.ts

validate-codegen:
runs-on: ubuntu-latest
Expand All @@ -116,15 +154,16 @@ jobs:
with:
deno-version: ${{ matrix.deno-version }}

- name: Cache https:// deps
- name: Cache Deno deps
uses: actions/cache@v4
with:
path: |
~/.cache/deno/deps/https
~/.cache/deno/remote/https
path: ~/.cache/deno
key: deno/${{ matrix.deno-version }}-https/v1-${{ github.sha }}
restore-keys: deno/${{ matrix.deno-version }}-https/v1-

- name: 'Possibly reset lockfile'
run: deno install || rm deno.lock

- name: Validate aws-sdk fixtures
if: always()
run: time deno run -A generation/script/validate-fixtures.ts
Expand Down Expand Up @@ -156,12 +195,10 @@ jobs:
with:
deno-version: ${{ matrix.deno-version }}

- name: Cache https:// deps
- name: Cache Deno deps
uses: actions/cache@v4
with:
path: |
~/.cache/deno/deps/https
~/.cache/deno/remote/https
path: ~/.cache/deno
key: deno/${{ matrix.deno-version }}-https/v1-${{ github.sha }}
restore-keys: deno/${{ matrix.deno-version }}-https/v1-

Expand Down
18 changes: 18 additions & 0 deletions deno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"tasks": {
"deploy:dev": "deno run --watch --allow-env --allow-sys --allow-read --allow-net='[::]:8000,otel.devmode.cloud,api.github.com,raw.githubusercontent.com' generation/deploy/mod.ts"
},
"workspace": [
"./generation",
"./lib"
],
"imports": {
"@cloudydeno/jmespath": "jsr:@cloudydeno/jmespath@^1",
"@cloudydeno/opentelemetry": "jsr:@cloudydeno/opentelemetry@^0.10",
"@std/assert": "jsr:@std/assert@^1",
"@std/cache": "jsr:@std/cache@^0.2",
"@std/csv": "jsr:@std/csv@^1",
"@std/html": "jsr:@std/html@^1",
"@std/path": "jsr:@std/path@^1"
}
}
220 changes: 220 additions & 0 deletions deno.lock

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

Loading