Skip to content

Commit

Permalink
Add test action
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthetechie authored Jul 9, 2024
1 parent 8300334 commit 01ffafb
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: PHP Composer

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Run test suite
run: composer run-script test
env:
API_KEY: ${{ secrets.API_KEY }}

0 comments on commit 01ffafb

Please sign in to comment.