Skip to content

testing tests

testing tests #3

Workflow file for this run

name: PHP Composer CI/CD
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions:
contents: write
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
- name: Install dependencies
run: composer install
- name: Run tests
run: composer test
- name: Configure Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "Jiří Bělský"
- name: Publish package
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.GITHUB_TOKEN }}"}}'
run: composer publish