added changes to docker and shell script #16
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 Vaultify Workflow | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
ref: main | |
path: './' | |
- name: Set up Go | |
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 | |
with: | |
go-version-file: 'go.mod' | |
cache: true | |
- name: Run Go Tests | |
run: go test -v ./tests -coverprofile=coverage.out | |
continue-on-error: false | |
- name: Check for Test Failures | |
if: failure() | |
run: echo "Tests failed. Check the logs for more details." | |
- name: Test Coverage | |
run: go tool cover -func=coverage.out | |
continue-on-error: false |