Skip to content

Commit 919a660

Browse files
Merge pull request #1056 from johngeorgewright/deno-frozen
ci: reusable testing workflow
2 parents 73926cf + cb09ddd commit 919a660

2 files changed

Lines changed: 9 additions & 19 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches: [master]
66

77
jobs:
8+
test:
9+
uses: ./.github/workflows/test.yml
10+
811
publish:
912
name: Publish
1013
runs-on: ubuntu-latest
@@ -16,20 +19,6 @@ jobs:
1619
with:
1720
token: ${{ secrets.GH_TOKEN }}
1821

19-
- name: Use Node
20-
uses: denoland/setup-deno@v2
21-
with:
22-
deno-version: v2.x
23-
24-
- name: Check
25-
run: deno check
26-
27-
- name: Lint
28-
run: deno lint
29-
30-
- name: Test
31-
run: deno test
32-
3322
- name: Semantic Release
3423
uses: cycjimmy/semantic-release-action@v4
3524
env:
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
name: Pull Request
1+
name: Test
22

33
on:
44
pull_request:
5+
workflow_call:
56

67
jobs:
78
test:
@@ -12,16 +13,16 @@ jobs:
1213
- name: Checkout project
1314
uses: actions/checkout@v4
1415

15-
- name: Use Node
16+
- name: Use Deno
1617
uses: denoland/setup-deno@v2
1718
with:
1819
deno-version: v2.x
1920

2021
- name: Check
21-
run: deno check
22+
run: deno check --frozen src
2223

2324
- name: Lint
24-
run: deno lint
25+
run: deno lint src
2526

2627
- name: Test
27-
run: deno test
28+
run: deno test --frozen test

0 commit comments

Comments
 (0)