Skip to content

Commit

Permalink
UHF-8762: Run actual tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tuutti committed Jan 19, 2024
1 parent 97f4aec commit 3620621
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/visual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Start project
working-directory: ${{ env.DRUPAL_ROOT }}
run: docker compose up -d --wait && sleep 5
run: docker compose --profile testing up -d --wait && sleep 5

- name: Setup Drupal
working-directory: ${{ env.DRUPAL_ROOT }}
Expand All @@ -58,8 +58,9 @@ jobs:
docker compose exec app bash -c "drush en helfi_test_content -y"
- name: Run tests
working-directory: ${{ env.DRUPAL_ROOT }}
run: |
NODE_VERSION=$(cat $THEME_FOLDER/.nvmrc 2>/dev/null)
docker run --rm --name helfi-node -v $(pwd):/app -w /app/public/themes/contrib/$THEME_NAME node:$NODE_VERSION npm run fast-reference
NODE_VERSION=$(cat.nvmrc 2>/dev/null)
docker run --rm --name helfi-node -v $(pwd):/app -w $(pwd) node:$NODE_VERSION npm install
docker run --rm --name helfi-node -v $(pwd):/app -w $(pwd) node:$NODE_VERSION npm run fast-reference
docker run --rm --name helfi-node -v $(pwd):/app -w $(pwd) node:$NODE_VERSION npm run fast-test

0 comments on commit 3620621

Please sign in to comment.