Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Jan 20, 2024
1 parent 40ab384 commit 42348e4
Show file tree
Hide file tree
Showing 2 changed files with 954 additions and 1,001 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Continuous Integration

on:
push:
paths-ignore:
- '**.md'
pull_request:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'

- name: Setup MySQL
uses: shogo82148/actions-setup-mysql@v1
with:
mysql-version: "8.0"
- run: mysql -uroot -e 'SELECT version()'

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest

- name: Run test suite
run: composer run-script test

- name: Insert todo seed
run: |
mysql -u root -e "INSERT INTO ticket (id, title, dateCreated) VALUES ('1', 'foo', '1970-01-01 00:00:00')" ticket
- name: Request /ticket resource
run: |
php bin/app.php get '/ticket?id=1'
- name: Create API doc
run: |
composer doc
Loading

0 comments on commit 42348e4

Please sign in to comment.