Skip to content

Merge pull request #187 from alphagov/186013676-upgrade-ginkgo-to-v2 #1117

Merge pull request #187 from alphagov/186013676-upgrade-ginkgo-to-v2

Merge pull request #187 from alphagov/186013676-upgrade-ginkgo-to-v2 #1117

Workflow file for this run

name: Go
on: [push, pull_request]
env:
GO_VERSION: "1.20"
jobs:
build:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
- name: "Install Go ${{env.GO_VERSION}}"
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: "${{env.GO_VERSION}}"
- name: Install Ginkgo CLI
run: |
go install github.com/onsi/ginkgo/v2/ginkgo@latest
- name: Run tests
run: |
make test_unit
- name: Run postgres 10 tests
run: |
make start_postgres_10 run_postgres_sql_tests stop_postgres_10
- name: Run postgres 11 tests
run: |
make start_postgres_11 run_postgres_sql_tests stop_postgres_11
- name: Run postgres 12 tests
run: |
make start_postgres_12 run_postgres_sql_tests stop_postgres_12
- name: Run postgres 13 tests
run: |
make start_postgres_13 run_postgres_sql_tests stop_postgres_13
- name: Run mysql 8.0
run: |
make start_mysql_80 run_mysql_sql_tests stop_mysql_80
- name: Run mysql 5.7
run: |
make start_mysql_57 run_mysql_sql_tests stop_mysql_57