From 850da665f8e905b4e98ea988219089d29926c8fa Mon Sep 17 00:00:00 2001 From: kocoten1992 Date: Sat, 12 Aug 2023 03:49:27 +0700 Subject: [PATCH] ci: add workflows/main.yml github --- .github/workflows/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..0215b66 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: PHP Test + +on: [push] + +jobs: + php-test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' # Adjust the PHP version as needed + extensions: mbstring # Add necessary extensions + + - name: Install dependencies + run: composer install + + - name: Run PHP tests + run: ./vendor/bin/phpunit tests +