export users route #200
Workflow file for this run
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
on: | |
push: | |
branches: [master] | |
tags: ["*"] | |
pull_request: | |
types: [opened, synchronize, reopened] | |
name: Test | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: [1.15.x, 1.16.x] | |
runs-on: ubuntu-latest | |
services: | |
mysql: | |
image: mysql:5.7 | |
env: | |
MYSQL_ALLOW_EMPTY_PASSWORD: yes | |
MYSQL_DATABASE: gotrue_test | |
ports: | |
- 3306:3306 | |
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: make deps | |
- name: Apply database migrations | |
run: make migrate_test | |
- name: Lint and test | |
run: make all | |
- name: Trigger CircleCI for deployment | |
if: ${{ (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == 'netlify/gotrue') && matrix.go-version == '1.15.x' }} | |
run: | | |
curl -X POST --silent --show-error --fail \ | |
-H 'Circle-Token: ${{ secrets.CIRCLE_TOKEN }}' \ | |
-H 'content-type: application/json' \ | |
--data '{ "branch": "master", "parameters": { "branch": "${{ github.event.pull_request.head.ref || github.ref_name }}", "commit": "${{ github.event.pull_request.head.sha || github.sha }}" } }' \ | |
https://circleci.com/api/v2/project/gh/netlify/gotrue-ci/pipeline |