File tree Expand file tree Collapse file tree 5 files changed +68
-34
lines changed
Expand file tree Collapse file tree 5 files changed +68
-34
lines changed Original file line number Diff line number Diff line change 1+ name : Check Format
2+
3+ on : [workflow_call]
4+
5+ jobs :
6+ format :
7+ strategy :
8+ matrix :
9+ deno : ["v2.2.12"]
10+ os : [ubuntu-latest]
11+
12+ runs-on : ${{ matrix.os }}
13+
14+ steps :
15+ - name : Setup repo
16+ uses : actions/checkout@v2
17+
18+ - name : Setup Deno
19+ uses : denoland/setup-deno@v1
20+ with :
21+ deno-version : ${{ matrix.deno }}
22+
23+ - name : Run Deno Check Formatting
24+ run : deno fmt --check
Original file line number Diff line number Diff line change 1- name : Publish to JSR.io
2- on :
3- push :
4- branches : [main]
1+ name : Publish
2+
3+ on : [workflow_call]
54
65jobs :
76 publish :
8- runs-on : ubuntu-latest
9-
107 permissions :
118 contents : read
129 id-token : write
1310
11+ runs-on : ubuntu-latest
12+
1413 steps :
1514 - name : Setup repo
1615 uses : actions/checkout@v4
Original file line number Diff line number Diff line change 1+ name : PR
2+
3+ on : [pull_request]
4+
5+ jobs :
6+ call-format :
7+ uses : ./.github/workflows/format.yml
8+
9+ call-test :
10+ uses : ./.github/workflows/test.yml
Original file line number Diff line number Diff line change 1+ name : Push Main
2+
3+ on :
4+ push :
5+ branches : [main]
6+
7+ jobs :
8+ call-format :
9+ uses : ./.github/workflows/format.yml
10+
11+ call-test :
12+ uses : ./.github/workflows/test.yml
13+ secrets :
14+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
15+
16+ call-publish :
17+ needs : [call-format, call-test]
18+ uses : ./.github/workflows/test.yml
19+ permissions :
20+ contents : read
21+ id-token : write
Original file line number Diff line number Diff line change 1- name : Format and Test
1+ name : Test
22
33on :
4- push :
5- branches : [main]
6- pull_request :
7- branches : [main]
4+ workflow_call :
5+ secrets :
6+ GITHUB_TOKEN :
7+ required : true
88
99jobs :
10- check-format :
11- runs-on : ${{ matrix.os }} # runs a test on Ubuntu, Windows and macOS
12-
13- strategy :
14- matrix :
15- deno : ["v2.2.12"]
16- os : [ubuntu-latest]
17-
18- steps :
19- - name : Setup repo
20- uses : actions/checkout@v2
21-
22- - name : Setup Deno
23- uses : denoland/setup-deno@v1
24- with :
25- deno-version : ${{ matrix.deno }}
26-
27- - name : Run Deno Check Formatting
28- run : deno fmt --check
29-
3010 test :
31- runs-on : ${{ matrix.os }} # runs a test on Ubuntu, Windows and macOS
32-
3311 strategy :
3412 matrix :
3513 deno : ["v2.2.12"]
3614 os : [macOS-latest, windows-latest, ubuntu-latest]
3715
16+ runs-on : ${{ matrix.os }}
17+
3818 steps :
3919 - name : Setup repo
4020 uses : actions/checkout@v2
4525 deno-version : ${{ matrix.deno }}
4626
4727 - name : Run Deno Tests
48- run : deno test --doc -- parallel --coverage=coverage
28+ run : deno test --parallel --coverage=coverage
4929
5030 - name : Generate Coverage
5131 run : deno coverage --unstable ./coverage --lcov > ./coverage/lcov.info
You can’t perform that action at this time.
0 commit comments