Added the whole lab5 #10
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: Integration tests ci-cd | |
on: | |
pull_request: | |
branches: | |
- '*' | |
push: | |
branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Update packages and module | |
run: | | |
go get -u ./... | |
go mod download | |
go mod tidy | |
- name: Setup Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '1.20' | |
- name: Running integration test | |
run: docker-compose -f docker-compose.yaml -f docker-compose.test.yaml up --exit-code-from test | |