Skip to content

chore(deps): update dependency drupal/core-dev to v10 - autoclosed #381

chore(deps): update dependency drupal/core-dev to v10 - autoclosed

chore(deps): update dependency drupal/core-dev to v10 - autoclosed #381

Workflow file for this run

name: test-preview
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
test_preview:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [16]
steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@master
- name: Setup node env πŸ—
uses: actions/[email protected]
with:
node-version: ${{ matrix.node }}
check-latest: true
- name: Cache node_modules πŸ“¦
uses: actions/[email protected]
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install frontend dependencies πŸ‘¨πŸ»β€πŸ’»
run: cd nuxt && yarn install
- name: Run linter πŸ‘€
run: cd nuxt && yarn lint
- name: Setup ddev
uses: ddev/github-action-setup-ddev@v1
with:
autostart: false
- name: Start ddev
run: cd drupal && ddev start
- name: Install Drupal πŸ‘¨πŸ»β€πŸ’»
run: cd drupal && ddev drupal-install
- name: Run tests πŸ§ͺ
run: cd nuxt && BASE_URL=http://druxt-js-demo-umami.ddev.site yarn test
- name: Generate dist πŸ‘¨πŸ»β€πŸ’»
run: cd nuxt && yarn generate
- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: './nuxt/dist'
production-branch: main
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
enable-pull-request-comment: true
enable-commit-comment: true
overwrites-pull-request-comment: true
github-deployment-environment: ${{ github.head_ref }}
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1
- uses: actions/upload-artifact@v3
with:
name: cypress-videos
path: nuxt/cypress/videos
- uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-screenshots
path: nuxt/cypress/screenshots