File tree 17 files changed +1405
-0
lines changed
17 files changed +1405
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+ branches :
9
+ - main
10
+
11
+ permissions :
12
+ contents : read
13
+
14
+ jobs :
15
+ test :
16
+ uses : ./.github/workflows/test.yml
17
+ secrets : inherit
Original file line number Diff line number Diff line change
1
+ name : publish
2
+
3
+ on :
4
+ release :
5
+ types :
6
+ - published
7
+
8
+ permissions :
9
+ contents : read
10
+ id-token : write
11
+
12
+ jobs :
13
+ publish :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - run : deno run -A jsr:@david/publish-on-tag@x.x.x
Original file line number Diff line number Diff line change
1
+ name : test
2
+
3
+ on :
4
+ workflow_call :
5
+ workflow_dispatch :
6
+
7
+ permissions :
8
+ contents : read
9
+
10
+ defaults :
11
+ run :
12
+ shell : bash
13
+
14
+ jobs :
15
+ fmt :
16
+ runs-on : ubuntu-latest
17
+
18
+ steps :
19
+ - name : Checkout
20
+ uses : actions/checkout@v4
21
+
22
+ - name : Setup Deno
23
+ uses : denoland/setup-deno@v1
24
+
25
+ - name : Check format
26
+ run : deno fmt --check
27
+
28
+ lint :
29
+ runs-on : ubuntu-latest
30
+
31
+ steps :
32
+ - name : Checkout
33
+ uses : actions/checkout@v4
34
+
35
+ - name : Setup Deno
36
+ uses : denoland/setup-deno@v1
37
+
38
+ - name : Check lint
39
+ run : deno lint
40
+
41
+ check :
42
+ runs-on : ubuntu-latest
43
+
44
+ steps :
45
+ - name : Checkout
46
+ uses : actions/checkout@v4
47
+
48
+ - name : Setup Deno
49
+ uses : denoland/setup-deno@v1
50
+
51
+ - name : Restore cache
52
+ uses : actions/cache@v4
53
+ with :
54
+ path : |
55
+ ~/.cache/deno
56
+ ~/.deno
57
+ key : deno-${{ hashFiles('deno.lock') }}
58
+ restore-keys : deno
59
+
60
+ - name : Run type check
61
+ run : deno task check
62
+
63
+ test :
64
+ runs-on : ubuntu-latest
65
+
66
+ steps :
67
+ - name : Checkout
68
+ uses : actions/checkout@v4
69
+
70
+ - name : Setup Deno
71
+ uses : denoland/setup-deno@v1
72
+
73
+ - name : Restore cache
74
+ uses : actions/cache@v4
75
+ with :
76
+ path : |
77
+ ~/.cache/deno
78
+ ~/.deno
79
+ key : deno-${{ hashFiles('deno.lock') }}
80
+ restore-keys : deno
81
+
82
+ - name : Run tests
83
+ run : deno task test --coverage=./coverage_profile
84
+
85
+ - name : Create coverage report
86
+ run : deno coverage ./coverage_profile --lcov --output=./coverage.lcov
87
+
88
+ - name : Upload to Codecov
89
+ uses : codecov/codecov-action@v4
90
+ with :
91
+ directory : ./
92
+ file : ./coverage.lcov
93
+ token : ${{ secrets.CODECOV_TOKEN }}
94
+
Original file line number Diff line number Diff line change
1
+ name : update
2
+
3
+ on :
4
+ schedule :
5
+ - cron : ' 7 23 * * *'
6
+ workflow_dispatch :
7
+
8
+ permissions :
9
+ contents : write
10
+ pull-requests : write
11
+
12
+ jobs :
13
+ update :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+ - uses : hasundue/molt-action@v1-rc
You can’t perform that action at this time.
0 commit comments