Skip to content

playing with the workflow. #7

playing with the workflow.

playing with the workflow. #7

Workflow file for this run

name: mysql-semver test workflow
on: [push]
jobs:
tests:
runs-on: ubuntu-latest
name: tests
env:
DB_DATABASE: test_db
DB_USER: root
DB_PASSWORD: root
DB_HOST: localhost
steps:
- name: Set up MySQL server
run: |
sudo systemctl start mysql
mysql -uroot -proot -e "SELECT version();"
mysql -uroot -proot -e "CREATE DATABASE test_db DEFAULT CHARACTER SET utf8mb4;"
mysql -uroot -proot -e "SHOW DATABASES;"
- uses: actions/checkout@v3
- name: Set up stored functions
run: mysql -uroot -proot test_db < ./semver.sql
- name: Run tests
run: if mysql -uroot -proot test_db < ./tests.sql | grep -q 'column'; then exit 1; fi