Replace return with exit in Makefile (#24) #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build-and-test: | |
name: Build and test | |
runs-on: ubuntu-latest | |
steps: | |
- name: git checkout | |
uses: actions/checkout@v4 | |
- name: set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ^1.18 | |
cache-dependency-path: | | |
go.sum | |
- name: Build | |
run: make build | |
- name: Run linter | |
run: make lint | |
- name: Start test environment | |
run: make link-existing-docker-compose && make start-docker-environment | |
- name: Run tests | |
run: make test | |
- name: Stop test environment | |
run: make stop-docker-environment |