Adding template module #6
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
# Run the unit tests from the project | |
name: Unit Test | |
on: | |
push: | |
branches: | |
- '*' | |
tags: | |
- 'v*' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the codebase and install Golang for testing | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Golang | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.21.x | |
cache-dependency-path: | | |
**/go/sum | |
**/go.mod | |
# Run unit tests | |
- id: test | |
run: | | |
sudo apt-get install -y libvirt-dev | |
make test |