Skip to content

Commit 3689ce6

Browse files
committed
Using reusable workflows
1 parent 8d47f9a commit 3689ce6

File tree

1 file changed

+4
-36
lines changed

1 file changed

+4
-36
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,7 @@
1-
# See https://deno.land/manual/advanced/continuous_integration
2-
31
on: [push,pull_request]
42

5-
# Set DENO_DIR to an absolute or relative path on the runner.
6-
env:
7-
DENO_DIR: cache
8-
93
jobs:
10-
build:
11-
runs-on: ubuntu-latest
12-
13-
permissions:
14-
id-token: write # This is required for requesting the JWT
15-
contents: read # This is required for actions/checkout
16-
17-
steps:
18-
# Check out the code
19-
- uses: actions/checkout@v4
20-
21-
# Setup deno
22-
- uses: denoland/setup-deno@v2
23-
24-
# Run tests collect code coverage and generate report from the collected coverage
25-
- run: deno test --allow-all --unstable-kv --coverage=cov/
26-
- run: deno coverage --lcov cov/ > cov.lcov
27-
28-
# Upload to Codecov (see https://github.com/marketplace/actions/codecov)
29-
- uses: codecov/codecov-action@v5
30-
with:
31-
token: ${{ secrets.CODECOV_TOKEN }}
32-
files: cov.lcov
33-
fail_ci_if_error: true
34-
35-
# Check that code is correctly formatted
36-
- run: deno fmt --check
37-
38-
# Publish to JSR
39-
# - run: deno publish
4+
ci:
5+
uses: acrodrig/dotfiles/.github/workflows/ci.yml@master
6+
with: { publish: true }
7+
secrets: inherit

0 commit comments

Comments
 (0)