-
Notifications
You must be signed in to change notification settings - Fork 10
49 lines (49 loc) · 1.46 KB
/
ci.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: Quality
on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- documentation/**
pull_request:
types: [opened, synchronize, reopened]
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
playwright:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout BackOffice
uses: actions/checkout@v4
with:
repository: inseefr/bauhaus-back-office
path: ./bauhaus-back-office
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm ci --force
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: LS
run: ls -al
- uses: adambirds/[email protected]
with:
compose-file: './bauhaus-back-office/compose.yml'
test-command: 'npx playwright test'
test-build:
name: Test & Build & Deploy Sonar report
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Generic CI For Building the Application
uses: ./.github/actions/generic-ci-app
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets. SONAR_TOKEN }}