Merge pull request #2 from DenzelPenzel/dependabot/go_modules/github.β¦ #12
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
# Go test workflow | |
name: test | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.22 | |
- name: Install project dependencies | |
run: | | |
go mod download | |
- name: Build App | |
run: make build-app | |
go-test: | |
outputs: | |
COVERAGE: ${{ steps.unit.outputs.coverage }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.22 | |
- name: Install project dependencies | |
run: | | |
go mod download | |
- name: Run Tests | |
id: unit | |
run: | | |
make test |