Include Linked-In Badge #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Simple Validation | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Validate Project 1 | |
run: composer validate --strict | |
working-directory: project1 | |
- name: Validate Project 2 | |
run: composer validate --strict | |
working-directory: project2 | |
- name: Validate Project 3 | |
run: composer validate --strict | |
working-directory: project3 | |
- name: Validate Project 4 | |
run: composer validate --strict | |
working-directory: project4 | |
- name: Install Project 4 | |
run: composer install | |
working-directory: project4 | |
- name: Test Project 4 | |
run: ./vendor/bin/phpunit --verbose tests | |
working-directory: project4 | |
build: | |
runs-on: ubuntu-latest | |
needs: tests | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build Docker Compose | |
run: docker compose build |