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

31 lines
870 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-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 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:29:11 +00:00
- name: Test
2023-12-21 00:53:50 +00:00
run: curl http://firqdevwebsite/ || true
2023-12-21 00:29:11 +00:00
- name: Test 2
2023-12-21 00:58:08 +00:00
run: curl http://127.0.0.1:8081/ || true
- name: docker test
run: docker network ls
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/