2023-12-20 23:55:41 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- '[0-9]+\.[0-9]+\.[0-9]+unlighthouse[0-9]+'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
unlighthouse:
|
2023-12-21 00:58:08 +00:00
|
|
|
runs-on: dind
|
2023-12-21 01:03:47 +00:00
|
|
|
container: registry.gitlab.com/gitlab-ci-utils/lighthouse:latest
|
2023-12-20 23:55:41 +00:00
|
|
|
services:
|
2023-12-21 00:52:27 +00:00
|
|
|
firqdevwebsite:
|
2023-12-20 23:55:41 +00:00
|
|
|
image: forgejo.neshweb.net/firq/firq-dev-website:preview
|
2023-12-21 01:17:25 +00:00
|
|
|
options: >-
|
|
|
|
--health-cmd "curl --fail http://localhost:8081 || exit 1"
|
|
|
|
--health-interval 10s
|
|
|
|
--health-timeout 5s
|
|
|
|
--health-retries 5
|
2023-12-21 01:03:47 +00:00
|
|
|
steps:
|
2023-12-20 23:55:41 +00:00
|
|
|
- name: Install Dependencies
|
|
|
|
run: npm install @unlighthouse/cli puppeteer
|
|
|
|
- name: Run unlighthouse
|
2023-12-21 01:09:01 +00:00
|
|
|
run: node_modules/.bin/unlighthouse-ci --site "http://firqdevwebsite:8081"
|
2023-12-20 23:55:41 +00:00
|
|
|
- name: Upload reports
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: unlighthouse-reports
|
2023-12-20 23:57:26 +00:00
|
|
|
path: unlighthouse-reports/
|