Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 15 additions & 17 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- add-ogc-wps-api-on-php
pull_request:
branches:
- master
Expand All @@ -13,21 +14,18 @@ jobs:
name: "🐘 PHP-CS-Fixer"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "PHP-CS-Fixer"
uses: docker://oskarstark/php-cs-fixer-ga:3.8.0
with:
args: --config=.php-cs-fixer.dist.php --allow-risky=yes --dry-run --diff -- wps
- uses: actions/checkout@v4
- name: "PHP-CS-Fixer"
uses: docker://oskarstark/php-cs-fixer-ga:3.8.0
with:
args: --config=.php-cs-fixer.dist.php --allow-risky=yes --dry-run --diff -- wps

# eslint:
# name: "🔶 EsLint"
# runs-on: ubuntu-latest
# steps:
#
# - uses: actions/checkout@v2
#
# - name: Install modules
# run: npm install
#
# - name: Run ESLint
# run: npx eslint wps/
eslint:
name: "🔶 EsLint"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install modules
run: npm install
- name: Run ESLint
run: npm run eslint
45 changes: 45 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: "End2end Tests for API 🚗"
on:
push:
branches:
- master
- add-ogc-wps-api-on-php
pull_request:
branches:
- master

jobs:
e2e:
timeout-minutes: 10
runs-on: ubuntu-latest
defaults:
run:
working-directory: tests
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Initialize and run Docker
run: |
make pull
make run
- name: Wait for Lizmap to be ready
run: |
sleep 20
- name: Install module
run: |
make install-module
make import-lizmap-acl
- name: Install E2E dependencies
run: |
cd end2end
npm ci
- name: Install Playwright Browsers
run: |
cd end2end
npx playwright install --with-deps chromium
- name: Run Playwright tests
run: |
cd end2end
npx playwright test --project=chromium
Loading