-
Notifications
You must be signed in to change notification settings - Fork 177
32 lines (31 loc) · 990 Bytes
/
next-drupal.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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}}
# TODO: Work-around for failing code coverage.
# https://github.com/chapter-three/next-drupal/issues/740
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '18.19.x'
- 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 }}