-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (46 loc) · 1.33 KB
/
regressions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Regressions
on:
push:
pull_request:
branches:
- master
workflow_dispatch:
inputs:
to_upgrade:
description: 'The dependency to upgrade and compare: repository@branch'
required: true
default: 'git+https://github.com/mkdocs/mkdocs.git@master'
jobs:
collect_projects:
runs-on: ubuntu-latest
outputs:
projects: ${{ steps.projects.outputs.projects }}
steps:
- uses: actions/checkout@v4
- id: projects
shell: python
run: |
import json, os, sys
json.dump([d.replace("--", "/") for d in os.listdir("projects")], sys.stdout)
regressions:
needs: collect_projects
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
repo: ${{ fromJson(needs.collect_projects.outputs.projects) }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Setup
run: ./build.sh setup ${{ matrix.repo }}
- name: Build current version
run: ./build.sh build_current ${{ matrix.repo }}
- name: Build latest version
run: ./build.sh build_latest ${{ matrix.repo }} ${{ github.event.inputs.to_upgrade }}
- name: Compare sites
run: ./build.sh compare ${{ matrix.repo }}