ci(next-drupal): run code formatting/linting on full monorepo (#701) #1239
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: next-drupal | |
on: | |
push: | |
branches: | |
- main | |
pull_request_target: | |
types: [opened, reopened, synchronize] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{github.event.pull_request.head.ref}} | |
repository: ${{github.event.pull_request.head.repo.full_name}} | |
- name: Install packages | |
run: yarn | |
- name: Run tests | |
run: yarn test | |
env: | |
DRUPAL_BASE_URL: ${{ secrets.DRUPAL_BASE_URL }} | |
DRUPAL_USERNAME: ${{ secrets.DRUPAL_USERNAME }} | |
DRUPAL_PASSWORD: ${{ secrets.DRUPAL_PASSWORD }} | |
DRUPAL_CLIENT_ID: ${{ secrets.DRUPAL_CLIENT_ID }} | |
DRUPAL_CLIENT_SECRET: ${{ secrets.DRUPAL_CLIENT_SECRET }} |