Skip to content

Update go.yml

Update go.yml #7

Workflow file for this run

name: Go
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go_version: ['1.18', '1.17', '>=1.18']
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go_version }}
- name: Build-DB
run: docker compose build
- name: Create-DB
run: docker compose up -d
- name: Test
run: go test -v main_test.go
build:
needs: test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest', 'ubuntu-22.04']
steps:
- uses: actions/checkout@v3
- name: Build
run: go build -v main.go