Merge pull request #3 from ardikabs/chore/catch-error-during-write-on… #9
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: Test | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "**/*.go" | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "**/*.go" | |
workflow_call: | |
jobs: | |
audit: | |
name: Auditing the code | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ^1.21.x | |
- name: Install make | |
run: | | |
sudo apt update -y | |
sudo apt install make curl git -y | |
- name: Run audit | |
run: | | |
make lint | |
make test | |
- name: Upload coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./output/coverage.out |