-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (35 loc) · 987 Bytes
/
preview.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Deploy PR previews
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
jobs:
deploy-preview-and-lighthouse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: ./buildw
- name: Deploy PR Preview
id: pr-preview
uses: rossjrw/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
preview-branch: gh-pages
source-dir: build/site
umbrella-dir: pr-preview
action: auto
- run: mkdir /tmp/artifacts
- name: Run Lighthouse
uses: foo-software/lighthouse-check-action@master
with:
outputDirectory: /tmp/artifacts
urls: 'https://quickstarts.teradata.com,https://quickstarts.teradata.com/nos.html'
- name: Upload Lighthouse artifacts
uses: actions/upload-artifact@master
with:
name: Lighthouse reports
path: /tmp/artifacts