Feature/ecom 2090 bug block is not reloaded when country is not eligible #286
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
branches: | |
- main | |
- develop | |
workflow_dispatch: ~ | |
jobs: | |
sonarcloud: | |
name: SonarQube Cloud | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
- name: SonarQube Cloud Scan | |
uses: SonarSource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
lint: | |
name: Lint code | |
runs-on: ubuntu-22.04 | |
defaults: | |
run: | |
working-directory: ./src | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
show-progress: false | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "7.4" | |
tools: composer:v2 | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress | |
- name: Lint code | |
run: composer phpcs | |
test: | |
name: Run tests | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
# We are using only the latest supported version as a first step | |
matrix: | |
include: | |
- wc_version: "8.2.2" | |
wp_version: "6.4.1" | |
php_version: "7.4" | |
env: | |
PHP_VERSION: ${{ matrix.php_version }} | |
WC_VERSION: ${{ matrix.wc_version }} | |
WP_VERSION: ${{ matrix.wp_version }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
show-progress: false | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build test container | |
uses: docker/bake-action@v5 | |
with: | |
files: compose.yml | |
load: true | |
targets: test | |
set: | | |
test.cache-from=type=gha | |
test.cache-to=type=gha | |
- name: Run tests | |
run: docker compose run test | |