36 lines
901 B
YAML
36 lines
901 B
YAML
# Rôle : exécute la validation complète de chaque commit poussé sur main.
|
|
name: Validate Sokko G
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
validate:
|
|
runs-on: docker
|
|
|
|
steps:
|
|
- name: Check out the pushed commit
|
|
uses: https://data.forgejo.org/actions/checkout@v4
|
|
with:
|
|
ref: ${{ gitea.sha }}
|
|
persist-credentials: false
|
|
|
|
- name: Set up the pinned Node version
|
|
uses: https://data.forgejo.org/actions/setup-node@v4
|
|
with:
|
|
node-version: 24.11.1
|
|
cache: npm
|
|
|
|
- name: Set up the pinned npm version
|
|
run: npm install --global npm@11.17.0
|
|
|
|
- name: Install dependencies from the lockfile
|
|
run: npm ci
|
|
|
|
- name: Install the Chromium test runtime
|
|
run: npx playwright install --with-deps chromium
|
|
|
|
- name: Run the complete validation gate
|
|
run: npm run check:full
|