From 9c897cc85df8b47707ea245a95a4fff67bc8566f Mon Sep 17 00:00:00 2001 From: Santeri Hurnanen Date: Thu, 11 Apr 2024 14:28:21 +0300 Subject: [PATCH] Update workflows with drush helfi:tools:update-platform --- .github/workflows/test.yml | 12 +++++++++++- .github/workflows/update-config.yml | 1 - 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2f3761fc0..f4a302d7b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,10 +23,13 @@ jobs: MYSQL_ROOT_PASSWORD: drupal ports: - 3306:3306 - steps: - uses: actions/checkout@v4 + - name: Set browsertest output folder + run: | + echo "BROWSERTEST_OUTPUT_DIRECTORY=$GITHUB_WORKSPACE/public/sites/simpletest" >> $GITHUB_ENV + - name: Make sure configuration was exported in correct language (en or und) run: | OUTPUT=$(grep -oP '^langcode: \b(?!(?:en|und)\b)\w+' conf -R || true) @@ -76,3 +79,10 @@ jobs: composer test-php public/modules/custom if [ -d "tests/" ]; then composer test-php tests/; else echo "No DTT tests found. Ignoring..."; fi + - name: Create an artifact from test report + uses: actions/upload-artifact@v4 + if: always() + with: + name: results + path: ${{ env.BROWSERTEST_OUTPUT_DIRECTORY }} + retention-days: 1 diff --git a/.github/workflows/update-config.yml b/.github/workflows/update-config.yml index 347b9b961..1a7d61f70 100644 --- a/.github/workflows/update-config.yml +++ b/.github/workflows/update-config.yml @@ -10,7 +10,6 @@ jobs: runs-on: ubuntu-latest container: image: ghcr.io/city-of-helsinki/drupal-php-docker:8.3-alpine - services: db: image: mysql:8