File tree Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy GitHub Pages
2
+
3
+ on :
4
+ push :
5
+ branches : ["main"]
6
+
7
+ workflow_dispatch :
8
+ inputs :
9
+ page-root-directory :
10
+ description : Page root directory
11
+ default : ' ./src/client/'
12
+ type : string
13
+
14
+ permissions :
15
+ contents : read
16
+ pages : write
17
+ id-token : write
18
+
19
+ concurrency :
20
+ group : " pages"
21
+ cancel-in-progress : false
22
+
23
+ jobs :
24
+ test :
25
+ name : Deno Test
26
+ runs-on : ubuntu-latest
27
+ env :
28
+ deno-version : v1.x
29
+
30
+ steps :
31
+ - name : Get current date
32
+ id : date
33
+ run : echo "DATE=$(date +'%Y.%m.%d@%H-%M-%S')" >> $GITHUB_ENV
34
+
35
+ - name : Setup Repository (${{github.event.repository.name}})
36
+ uses : actions/checkout@v3
37
+
38
+ - name : Setup Deno (${{env.deno-version}})
39
+ uses : denoland/setup-deno@v1
40
+ with :
41
+ deno-version : ${{env.deno-version}}
42
+
43
+ - name : Run linter
44
+ run : deno lint
45
+
46
+ - name : Run tests
47
+ if : success() || failure()
48
+ run : |
49
+ mkdir reports
50
+ deno test -A --unstable --check --reload --doc --allow-none --junit-path="./reports/${{env.DATE}}-report.xml"
51
+
52
+ - name : Report tests (${{env.DATE}}-report.xml)
53
+ uses : dorny/test-reporter@v1
54
+ with :
55
+ name : Deno Test Report
56
+ path : ./reports/${{env.DATE}}-report.xml
57
+ reporter : jest-junit
You can’t perform that action at this time.
0 commit comments