Skip to content

php-suite-api Build #43

php-suite-api Build

php-suite-api Build #43

Workflow file for this run

name: php-suite-api Build
on: push
env:
PACKAGIST_TOKEN: ${{ secrets.PACKAGIST_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
jobs:
test:
name: Tests & Deploy 🚦🚢
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Setup and start container
run: make all
- name: Run tests
run: make test
- name: Release package
run: composer publish emartech ${PACKAGIST_TOKEN}
- name: Slack notification
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,message,author,job,ref
job_name: Tests & Deploy 🚦🚢
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: always()