File tree 2 files changed +65
-1
lines changed
2 files changed +65
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Run Reftests and Deploy to Pages
2
+
3
+ on :
4
+ workflow_dispatch :
5
+
6
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
7
+ permissions :
8
+ contents : read
9
+ pages : write
10
+ id-token : write
11
+
12
+ # Allow only one concurrent deployment
13
+ concurrency :
14
+ group : " pages"
15
+ cancel-in-progress : true
16
+
17
+ jobs :
18
+ build :
19
+ runs-on : ubuntu-latest
20
+ steps :
21
+ - uses : actions/checkout@v3
22
+
23
+ - name : Install Rust
24
+ uses : dtolnay/rust-toolchain@stable
25
+ with :
26
+ toolchain : stable
27
+
28
+ - uses : browser-actions/setup-chrome@v1
29
+ with :
30
+ chrome-version : 120
31
+ install-dependencies : true
32
+
33
+ - name : Check Chrome Installation
34
+ run : chrome --version
35
+
36
+ - name : Run Reftests
37
+ run : cargo run --manifest-path reftest/Cargo.toml --release
38
+ env :
39
+ GITHUB_CI : " true"
40
+
41
+ - name : Setup Pages
42
+ uses : actions/configure-pages@v4
43
+
44
+ - name : Upload Pages artifact
45
+ uses : actions/upload-pages-artifact@v2
46
+ with :
47
+ path : ' reftest/output'
48
+
49
+ deploy :
50
+ needs : build
51
+
52
+ permissions :
53
+ pages : write # to deploy to Pages
54
+ id-token : write # to verify the deployment originates from an appropriate source
55
+
56
+ environment :
57
+ name : github-pages
58
+ url : ${{ steps.deployment.outputs.page_url }}
59
+
60
+ runs-on : ubuntu-latest
61
+ steps :
62
+ - name : Deploy to GitHub Pages
63
+ id : deployment
64
+ uses : actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action
Original file line number Diff line number Diff line change 6
6
deploy :
7
7
description : ' Deploy to GitHub Pages'
8
8
required : false
9
- default : ' false'
9
+ default : false
10
10
type : boolean
11
11
12
12
env :
You can’t perform that action at this time.
0 commit comments