From 1d282ffd0028aefe081795febf4d5e7d2f15114f Mon Sep 17 00:00:00 2001 From: Tan Nguyen Date: Sun, 8 Oct 2023 17:21:22 +0700 Subject: [PATCH] create composer setup and tests action --- .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