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

33 lines
873 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:
runs-on: docker
2023-12-21 00:31:58 +00:00
container: node:20.10.0-bookworm-slim
2023-12-20 23:55:41 +00:00
services:
website:
image: forgejo.neshweb.net/firq/firq-dev-website:preview
2023-12-21 00:29:11 +00:00
ports:
- 12000:8081
2023-12-20 23:55:41 +00:00
steps:
2023-12-21 00:30:36 +00:00
- name: Deps
run: apt-get install curl -y
2023-12-21 00:29:11 +00:00
- name: Test
run: curl http://website/
- name: Test 2
run: curl http://website:8081/
- name: Test 3
run: curl http://website:12000/
2023-12-20 23:55:41 +00:00
- name: Install Dependencies
run: npm install @unlighthouse/cli puppeteer
- name: Run unlighthouse
2023-12-21 00:24:41 +00:00
run: node_modules/.bin/unlighthouse-ci --site "website"
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/