Skip to content

Merge pull request #195 from alphagov/187200424-update-to-go-1-21 #1176

Merge pull request #195 from alphagov/187200424-update-to-go-1-21

Merge pull request #195 from alphagov/187200424-update-to-go-1-21 #1176

Workflow file for this run

name: Go
on: [push, pull_request]
env:
GO_VERSION: "1.21"
jobs:
build:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: "Install Go ${{env.GO_VERSION}}"
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: "${{env.GO_VERSION}}"
- 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