diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..710083f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + name: Build and Test + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' + tools: composer + + - name: Install dependencies + run: composer install --no-interaction + + - name: Run tests + run: ./vendor/bin/phpunit diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index 067f6ef..854171e 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -50,6 +50,12 @@ jobs: --git-user-id=getlate-dev \ --git-repo-id=late-php + - name: Install dependencies + run: composer install --no-interaction + + - name: Run tests + run: ./vendor/bin/phpunit + - name: Check for changes id: changes run: |