Skip to content

Commit

Permalink
wip-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnAlbin committed Oct 15, 2023
1 parent bb9becc commit 49a12a8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/next-drupal.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: next-drupal
on:
push:
pull_request_target:
types: [opened, reopened, synchronize]

Expand All @@ -11,10 +12,9 @@ jobs:
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: Install modules
run: yarn
- name: Run tests
run: yarn test packages/next-drupal
run: |
./test.sh
env:
DRUPAL_BASE_URL: ${{ secrets.DRUPAL_BASE_URL }}
DRUPAL_USERNAME: ${{ secrets.DRUPAL_USERNAME }}
Expand Down
12 changes: 12 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

echo "${DRUPAL_BASE_URL}" | sed 's/^..../_/g';
echo "${DRUPAL_BASE_URL}" | sed 's/....$/_/g';
echo "${DRUPAL_USERNAME}" | sed 's/^..../_/g';
echo "${DRUPAL_USERNAME}" | sed 's/....$/_/g';
echo "${DRUPAL_PASSWORD}" | sed 's/^..../_/g';
echo "${DRUPAL_PASSWORD}" | sed 's/....$/_/g';
echo "${DRUPAL_CLIENT_ID}" | sed 's/^..../_/g';
echo "${DRUPAL_CLIENT_ID}" | sed 's/....$/_/g';
echo "${DRUPAL_CLIENT_SECRET}" | sed 's/^..../_/g';
echo "${DRUPAL_CLIENT_SECRET}" | sed 's/....$/_/g';

0 comments on commit 49a12a8

Please sign in to comment.