mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
added manual trigger to test workflow
This commit is contained in:
parent
5e26630098
commit
26ca5b15d8
17
.github/workflows/tests.yml
vendored
17
.github/workflows/tests.yml
vendored
@ -1,9 +1,10 @@
|
||||
name: "Tests"
|
||||
on:
|
||||
workflow_dispatch: {}
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
|
||||
pull_request: {}
|
||||
|
||||
jobs:
|
||||
@ -12,7 +13,7 @@ jobs:
|
||||
name: PHP v8.1 with MongoDB 6.0
|
||||
concurrency: "ci-${{ github.ref }}"
|
||||
env:
|
||||
extensions: curl, intl, mbstring, mongodb-stable, redis, opcache, sockets, pcntl
|
||||
extensions: curl,intl,mbstring,mongodb-stable,redis,opcache,sockets,pcntl,xdebug
|
||||
key: jikan-rest-ci-cache-v1
|
||||
phpversion: 8.1
|
||||
services:
|
||||
@ -33,11 +34,11 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
|
||||
- name: Show MongoDB server status
|
||||
run: |
|
||||
docker exec --tty mongodb mongosh 127.0.0.1:27017 --eval "db.runCommand({ serverStatus: 1 })"
|
||||
|
||||
|
||||
- name: Setup extension cache
|
||||
id: extcache
|
||||
uses: shivammathur/cache-extensions@v1
|
||||
@ -52,13 +53,15 @@ jobs:
|
||||
path: ${{ steps.extcache.outputs.dir }}
|
||||
key: ${{ steps.extcache.outputs.key }}
|
||||
restore-keys: ${{ steps.extcache.outputs.key }}
|
||||
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: ${{ env.phpversion }}
|
||||
extensions: ${{ env.extensions }}
|
||||
|
||||
coverage: xdebug
|
||||
tools: composer
|
||||
|
||||
- name: Setup dependency cache
|
||||
id: composercache
|
||||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
||||
@ -69,7 +72,7 @@ jobs:
|
||||
path: ${{ steps.composercache.outputs.dir }}
|
||||
key: "${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}"
|
||||
restore-keys: "${{ runner.os }}-composer-"
|
||||
|
||||
|
||||
- name: Install dependencies
|
||||
run: composer install --no-interaction --no-progress --no-suggest --no-scripts
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user