From 95dfb8ed818ecaf12e2d88bb77514ed3bcc4dbf3 Mon Sep 17 00:00:00 2001 From: Minh Vuong Date: Wed, 27 Mar 2024 14:57:13 +0700 Subject: [PATCH] ci: add bin test workflow --- .github/workflows/bin_test.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/bin_test.yml diff --git a/.github/workflows/bin_test.yml b/.github/workflows/bin_test.yml new file mode 100644 index 0000000..91f7c56 --- /dev/null +++ b/.github/workflows/bin_test.yml @@ -0,0 +1,33 @@ +name: Bin Tests + +on: + push: + branches: + - main + pull_request: ~ + +jobs: + unit_tests: + strategy: + matrix: + php: + - '8.2' + - '8.3' + + runs-on: ubuntu-latest + + name: "PHP ${{ matrix.php }} tests" + + steps: + - uses: actions/checkout@v4 + + - uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + coverage: pcov + + - uses: "ramsey/composer-install@v2" + + - run: chmod +x ./bin/codegen + + - run: ./bin/codegen