Skip to content

Set SameSite=None on login cookie #27

Set SameSite=None on login cookie

Set SameSite=None on login cookie #27

Workflow file for this run

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
env:
CIRCLE_API_USER_TOKEN: ${{ secrets.CIRCLE_API_USER_TOKEN }}
if: ${{ matrix.go-version == '1.15.x' && env.CIRCLE_API_USER_TOKEN != null }}
run: |
REF="${GITHUB_HEAD_REF:-main}"
curl -X POST --silent --show-error --fail \
--user $CIRCLE_API_USER_TOKEN: \
-H 'content-type: application/json' \
--data '{ "branch": "master", "parameters": { "branch": "'"$REF"'", "commit": "${{ github.event.pull_request.head.sha || github.sha }}" } }' \
https://circleci.com/api/v2/project/gh/netlify/gotrue-ci/pipeline