Skip to content

Commit

Permalink
Merge pull request #2125 from Daniel-KM/fix/github_php83
Browse files Browse the repository at this point in the history
Updated github workflow for php 8.3.
  • Loading branch information
zerocrates authored Nov 28, 2023
2 parents 619c0af + 93ff9fb commit e463fb2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
php-versions: ['7.4', '8.0', '8.1', '8.2']
php-versions: ['7.4', '8.0', '8.1', '8.2', '8.3']
fail-fast: false
steps:
- name: Checkout
Expand All @@ -36,7 +36,7 @@ jobs:
tools: composer:v1
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Node
uses: actions/setup-node@v3
with:
Expand All @@ -53,31 +53,31 @@ jobs:
path: ${{ env.CI_COMPOSER_CACHE_DIR }}
key: composer-${{ hashFiles('**/composer.lock') }}
restore-keys: composer-

- name: Cache build caches
uses: actions/cache@v3
with:
path: ./build/cache
key: build-cache-${{ github.sha }}
restore-keys: build-cache-

- name: Start MySQL
run: sudo systemctl start mysql.service

- name: Install Node dependencies
run: npm install

- name: Gulp init
run: npx gulp init

- name: Set up database
run: |
mysql -e "create database IF NOT EXISTS omeka_test;" -uroot -proot
sed -i 's/^host.*/host = "localhost"/' application/test/config/database.ini
sed -i 's/^user.*/user = "root"/' application/test/config/database.ini
sed -i 's/^dbname.*/dbname = "omeka_test"/' application/test/config/database.ini
sed -i 's/^password.*/password = "root"/' application/test/config/database.ini
- name: Run tests
run: npx gulp test --continue
env:
Expand Down

0 comments on commit e463fb2

Please sign in to comment.