fix; start the containers before the other commands #3
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: 💅 PHP Tests | |
on: push | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
name: 💅 PHP Tests | |
steps: | |
- name: 👍 Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: Get information | |
env: | |
JOB_CONTEXT: ${{ toJson(job) }} | |
run: | | |
echo "Workflow: from ${{ github.workflow }} triggered by the ${{ github.event_name }} done by ${{ github.actor }}" | |
echo "Event Name: ${{ github.event_name }}" | |
echo "User: ${{ github.actor }}" | |
echo "Job Context: $JOB_CONTEXT" | |
echo "Done!" | |
- uses: actions/cache@v1 | |
with: | |
path: ~/.composer | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-composer- | |
- name: Start docker instances | |
run: make start | |
- name: Install Dependencies | |
run: make install | |
- name: Test | |
run: make test |