Skip to content

Aula_5

Aula_5 #12

Workflow file for this run

name: Go
on:
push:
branches: [ Aula_5 ]
pull_request:
branches: [ Aula_5 ]
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: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: go build -v main.go