-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (40 loc) · 1.21 KB
/
ci.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
36
37
38
39
40
name: CI
on:
workflow_dispatch:
pull_request:
types: [opened, edited, reopened, closed, synchronize]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 17
cache: npm
- name: Run Antora
run: ./buildw
- name: Run PR Preview
uses: rossjrw/pr-preview-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
preview-branch: gh-pages
source-dir: build/site
umbrella-dir: pr-preview
- run: mkdir /tmp/artifacts
- name: Run Lighthouse Report
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
- name: Leave comment
uses: foo-software/lighthouse-check-action@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
moutputDirectory: /tmp/artifacts