-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove generated JS from repo (#57)
- Loading branch information
Showing
5 changed files
with
44 additions
and
12,427 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -3,15 +3,12 @@ name: ci | |
on: [push, pull_request] | ||
|
||
jobs: | ||
deno: | ||
rust: | ||
name: deno_cache_dir-${{ matrix.os }} | ||
if: | | ||
github.event_name == 'push' || | ||
!startsWith(github.event.pull_request.head.label, 'denoland:') | ||
runs-on: ${{ matrix.os }} | ||
permissions: | ||
contents: read | ||
id-token: write | ||
timeout-minutes: 30 | ||
strategy: | ||
matrix: | ||
|
@@ -28,27 +25,16 @@ jobs: | |
with: | ||
save-if: ${{ github.ref == 'refs/heads/main' }} | ||
|
||
- name: Install Deno | ||
uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: 1.x | ||
|
||
- name: Format | ||
if: contains(matrix.os, 'ubuntu') | ||
run: | | ||
deno fmt --check | ||
cargo fmt --check | ||
run: cargo fmt --check | ||
|
||
- name: Lint | ||
- name: Clippy | ||
if: contains(matrix.os, 'ubuntu') | ||
run: | | ||
deno lint | ||
cargo clippy | ||
run: cargo clippy | ||
|
||
- name: Test | ||
run: | | ||
deno task test | ||
cargo test | ||
run: cargo test | ||
|
||
- name: Cargo publish | ||
if: | | ||
|
@@ -59,7 +45,38 @@ jobs: | |
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
run: cargo publish -p deno_cache_dir | ||
|
||
deno: | ||
name: deno_cache_dir-deno | ||
if: | | ||
github.event_name == 'push' || | ||
!startsWith(github.event.pull_request.head.label, 'denoland:') | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
id-token: write | ||
timeout-minutes: 30 | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v4 | ||
- name: Install rust | ||
uses: dsherret/rust-toolchain-file@v1 | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
save-if: ${{ github.ref == 'refs/heads/main' }} | ||
- name: Install Deno | ||
uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: canary | ||
|
||
- name: Format | ||
run: deno fmt --check | ||
- name: Build | ||
run: deno task build | ||
- name: Lint | ||
run: deno lint | ||
- name: Test | ||
run: deno task test | ||
|
||
- name: Publish JSR | ||
if: contains(matrix.os, 'ubuntu') | ||
run: | | ||
deno run -A jsr:@david/[email protected] | ||
run: deno run -A jsr:@david/[email protected] |
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,2 +1,3 @@ | ||
.vscode | ||
/target | ||
lib/deno_cache_dir.generated.js |
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
Oops, something went wrong.