Skip to content

Commit

Permalink
Customize GitHub Actions (GHA) push.yml for UCSF CLE use.
Browse files Browse the repository at this point in the history
 * Enable submodules checkout in GHA.
 * Add token variable for checking out private repos in GHA.
 * Disable PostgreSQL tests in GHA.
  • Loading branch information
ctam committed Sep 3, 2024
1 parent 86e4520 commit 426202d
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:
steps:
- name: Checking out code
uses: actions/checkout@v4
# Do not run Grunt on submodules for now, until we are ready to fix these submodules
# with:
# submodules: true
# token: ${{ secrets.GH_PAT }}

- name: Configuring node & npm
uses: actions/setup-node@v4
Expand Down Expand Up @@ -65,10 +69,11 @@ jobs:
php: 8.1
extensions:
db: mysqli
# PostgreSQL builds always run with the highest PHP supported version.
- os: ubuntu-22.04
php: 8.3
db: pgsql
# Disable testing with PostgreSQL for now since we are not using it.
# # PostgreSQL builds always run with the highest PHP supported version.
# - os: ubuntu-22.04
# php: 8.3
# db: pgsql

steps:
- name: Setting up DB mysql
Expand All @@ -84,14 +89,14 @@ jobs:
tmpfs size: '1024M'
extra conf: --skip-log-bin

- name: Setting up DB pgsql
if: ${{ matrix.db == 'pgsql' }}
uses: m4nu56/postgresql-action@v1
with:
postgresql version: 13
postgresql db: test
postgresql user: test
postgresql password: test
# - name: Setting up DB pgsql
# if: ${{ matrix.db == 'pgsql' }}
# uses: m4nu56/postgresql-action@v1
# with:
# postgresql version: 13
# postgresql db: test
# postgresql user: test
# postgresql password: test

- name: Configuring git vars
uses: rlespinasse/github-slug-action@v4
Expand All @@ -106,6 +111,9 @@ jobs:

- name: Checking out code from ${{ env.GITHUB_REF_SLUG }}
uses: actions/checkout@v4
with:
submodules: true
token: ${{ secrets.GH_PAT }}

- name: Setting up PHPUnit
env:
Expand Down

0 comments on commit 426202d

Please sign in to comment.