-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Akanksha Singh
authored and
Akanksha Singh
committed
Jun 1, 2023
1 parent
62d05b6
commit 25cc4f6
Showing
4 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
name: Code Linting | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
Lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
- name: Run CodeSniffer | ||
uses: discoverygarden/CodeSniffer@v1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: PHPUnit Tests | ||
on: | ||
workflow_call: | ||
inputs: | ||
composer_prereqs: | ||
required: false | ||
type: string | ||
composer_patches: | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
PHPUnit: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
drupal-version: ['9.4'] | ||
php-version: ['7.4', '8.0'] | ||
experimental: [false] | ||
include: | ||
- drupal-version: '9' | ||
php-version: '7.4' | ||
experimental: true | ||
- drupal-version: '9' | ||
php-version: '8.1' | ||
experimental: true | ||
- drupal-version: '9.4' | ||
php-version: '8.1' | ||
experimental: true | ||
continue-on-error: ${{ matrix.experimental }} | ||
container: | ||
image: drupal:${{ matrix.drupal-version }}-php${{ matrix.php-version }} | ||
ports: | ||
- 80 | ||
services: | ||
postgres: | ||
image: postgres | ||
env: | ||
POSTGRES_DB: drupal | ||
POSTGRES_USER: drupal | ||
POSTGRES_PASSWORD: drupal | ||
# Set health checks to wait until postgres has started | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
steps: | ||
- name: Run PHPUnit Action | ||
uses: discoverygarden/phpunit-action@v1 | ||
with: | ||
composer_package_prerequisites: ${{ inputs.composer_prereqs }} | ||
composer_patches: ${{ inputs.composer_patches }} | ||
composer-auth: ${{ secrets.PRIVATE_PACKAGIST_AUTH_ACCESS }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Auto Semver | ||
on: | ||
pull_request_target: | ||
types: closed | ||
branches: | ||
- main | ||
jobs: | ||
Updating-Tag: | ||
if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
- name: Run Auto Semver | ||
uses: discoverygarden/auto-semver@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} |
File renamed without changes.