Skip to content

add postgres/mysql tests to Actions #1238

@nickysemenza

Description

@nickysemenza

from https://github.com/cloudflare/cfssl/blob/bea2d3db90fe13a9d4c220a9ef506a82af4b1b9f/.travis.yml
spinup dbs:

 make bin/goose;
psql -c 'create database certdb_development;' -U postgres;
./bin/goose -path certdb/pg up;
mysql -e 'create database certdb_development;' -u root;
mysql -e 'SET global sql_mode = 0;' -u root;
./bin/goose -path certdb/mysql up;

run tests with BUILD_TAGS="postgresql mysql" and they automatically use the db

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions