diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2f3761fc..f4a302d7 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 347b9b96..1a7d61f7 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