Skip to content

Instantly share code, notes, and snippets.

@juanwilde
Created November 26, 2021 19:24
Show Gist options
  • Save juanwilde/148f09d74ea23f30e18504f78ef3b57b to your computer and use it in GitHub Desktop.
Save juanwilde/148f09d74ea23f30e18504f78ef3b57b to your computer and use it in GitHub Desktop.
name: Tests
on:
pull_request:
branches: [ main ]
jobs:
build:
name: Run tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Pull docker-compose
run: docker-compose -f docker-compose.yml.dist pull
- uses: satackey/action-docker-layer-caching@v0.0.11
continue-on-error: true
- name: Prepare containers
run: make start && make composer-install
- name: Wait some time for MySQL container
run: sleep 10
- name: Run tests
run: make tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment