firq-dev-website/.forgejo/workflows/unlighthouse.yml

23 lines
649 B
YAML
Raw Normal View History

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: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:00:25 +00:00
run: node_modules/.bin/unlighthouse-ci --site "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/