Skip to content

Commit

Permalink
Initial commits
Browse files Browse the repository at this point in the history
  • Loading branch information
Akanksha Singh authored and Akanksha Singh committed Jun 1, 2023
1 parent 62d05b6 commit 25cc4f6
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/lint.yml
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
54 changes: 54 additions & 0 deletions .github/workflows/phpunit.yml
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 }}
17 changes: 17 additions & 0 deletions .github/workflows/semver.yml
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.

0 comments on commit 25cc4f6

Please sign in to comment.