-
Notifications
You must be signed in to change notification settings - Fork 13
58 lines (57 loc) · 1.51 KB
/
dsfr.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
50
51
52
53
54
55
56
57
58
on:
push:
branches: ["*"]
paths:
- dsfr/**
- .github/workflows/dsfr.yml
pull_request:
branches: ["*"]
paths:
- dsfr/**
- .github/workflows/dsfr.yml
name: Tests dsfr action
jobs:
tests-dsfr-valid:
runs-on: ubuntu-latest
name: dsfr valid
continue-on-error: true
strategy:
matrix:
item:
- name: talents
url: "https://talents.ssi.gouv.fr"
- name: histologe
url: "https://histologe.beta.gouv.fr/"
- name: beta
url: "https://beta.gouv.fr"
steps:
- uses: actions/checkout@v3
- name: Test DSFR detection on ${{ matrix.item.name }}
uses: ./dsfr
with:
url: ${{ matrix.item.url }}
output: ${{ matrix.item.name }}.json
- shell: bash
run: |
grep "\"detected\": true" < ${{ matrix.item.name }}.json
tests-dsfr-invalid:
runs-on: ubuntu-latest
name: dsfr invalid
continue-on-error: true
strategy:
matrix:
item:
- name: anais
url: "https://anais.beta.gouv.fr/"
- name: mes-evenements
url: "https://mesevenementsemploi.pole-emploi.fr/"
steps:
- uses: actions/checkout@v3
- name: Test DSFR detection on ${{ matrix.item.name }}
uses: ./dsfr
with:
url: ${{ matrix.item.url }}
output: ${{ matrix.item.name }}.json
- shell: bash
run: |
grep "\"detected\": false" < ${{ matrix.item.name }}.json