From 14417d90e36a07dd6bad00299477714b612e5b8a Mon Sep 17 00:00:00 2001 From: Tan Nguyen <35853002+tanhongit@users.noreply.github.com> Date: Sat, 21 Oct 2023 18:18:16 +0700 Subject: [PATCH] Create setup_test.yml --- .github/workflows/setup_test.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/setup_test.yml diff --git a/.github/workflows/setup_test.yml b/.github/workflows/setup_test.yml new file mode 100644 index 0000000..983c9c2 --- /dev/null +++ b/.github/workflows/setup_test.yml @@ -0,0 +1,21 @@ +name: Setup and test + +on: [ push, pull_request ] + +jobs: + tests: + name: Composer setup and tests + runs-on: ubuntu-latest + steps: + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' + - name: Checkout code + uses: actions/checkout@v3 + - name: Install dependencies + run: | + composer install --no-interaction --no-progress --no-suggest + - name: Run tests + run: | + composer validate --strict