-
Notifications
You must be signed in to change notification settings - Fork 22
48 lines (45 loc) · 1.29 KB
/
review.yaml
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
name: 👀 Review
on:
push:
branches:
- "renovate/**"
- "dependabot/**"
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.ref }}
jobs:
socialgouv:
name: "🇫🇷 SocialGouv"
uses: socialgouv/workflows/.github/workflows/use-ks-gh-review.yaml@v1
secrets: inherit
e2e:
name: End-to-end testing
runs-on: ubuntu-latest
needs: [socialgouv]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 20
cache: "yarn"
- name: Install dependencies
run: |
yarn install --immutable
- name: Env
id: env
uses: socialgouv/kontinuous/.github/actions/env@v1
- name: Set env
run: |
echo "SITE_URL=https://${{ steps.env.outputs.subdomain }}.dev.fabrique.social.gouv.fr" >> $GITHUB_ENV
- name: Run test e2e
run: |
TEST_BASEURL=${{ env.SITE_URL }} yarn test:e2e
- name: Archive generated screenshots
if: failure()
uses: actions/upload-artifact@v3
with:
name: e2e-screenshots
path: |
packages/code-du-travail-frontend/cypress/screenshots