Skip to content

Commit

Permalink
using reusable workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Pinta365 committed Mar 20, 2024
1 parent ecc3fd3 commit a003072
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 64 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/bun.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/deno.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/node.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# .github/workflows/publish.yml

name: Publish to JSR

on:
workflow_run:
workflows: ["Bun CI", "Deno CI", "Node.js CI"]
workflows: ["CI Tests"]
types:
- completed

Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# .github/workflows/test.yml
name: CI Tests

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

jobs:
deno_ci:
uses: cross-org/workflows/.github/workflows/deno-ci.yml@main
with:
entrypoint: mod.ts
bun_ci:
uses: cross-org/workflows/.github/workflows/bun-ci.yml@main
with:
jsr_dependencies: "@cross/test @std/assert"
node_ci:
uses: cross-org/workflows/.github/workflows/node-ci.yml@main
with:
jsr_dependencies: "@cross/test @std/assert"

0 comments on commit a003072

Please sign in to comment.