Customer website #926
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: Backend Tests | |
on: | |
push: | |
branches: [ "main" ] | |
env: | |
HOME: /home/devops | |
jobs: | |
laravel-tests: | |
name: Run backend tests 🧪 | |
runs-on: [ self-hosted, linux, x64 ] | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@v35 | |
- name: Npm install | |
run: npm ci | |
- name: Composer install | |
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | |
- name: Prepare environment | |
run: | | |
ln -s ../../../../env.wowsbar.testing .env.testing | |
ln -s ../../../../env.wowsbar.testing .env | |
- name: Generate database dumps 📚 | |
run: ./generate_testing_db_dumps.sh ${{vars.TESTING_DB_PORT}} | |
- name: Run test | |
run: vendor/bin/pest |