Skip to content

Commit 17d23eb

Browse files
committed
Add simple.yml
1 parent 76daa9d commit 17d23eb

File tree

2 files changed

+65
-1
lines changed

2 files changed

+65
-1
lines changed

.github/workflows/simple.yml

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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

.github/workflows/web.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
deploy:
77
description: 'Deploy to GitHub Pages'
88
required: false
9-
default: 'false'
9+
default: false
1010
type: boolean
1111

1212
env:

0 commit comments

Comments
 (0)