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

35 lines
986 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
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 00:29:11 +00:00
ports:
- 12000:8081
2023-12-21 00:42:30 +00:00
container: node:20-bookworm
2023-12-20 23:55:41 +00:00
steps:
2023-12-21 00:30:36 +00:00
- name: Deps
2023-12-21 00:33:23 +00:00
run: apt-get -y update; apt-get -y install curl
2023-12-21 00:52:27 +00:00
- name: Netstat
run: netstat -a
2023-12-21 00:29:11 +00:00
- name: Test
2023-12-21 00:36:54 +00:00
run: curl http://firq-dev-website/ || true
2023-12-21 00:29:11 +00:00
- name: Test 2
2023-12-21 00:36:54 +00:00
run: curl http://firq-dev-website:8081/ || true
2023-12-21 00:29:11 +00:00
- name: Test 3
2023-12-21 00:36:54 +00:00
run: curl http://firq-dev-website:12000/ || true
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/