creating a unit test using mocking for the generate SS function #113
Workflow file for this run
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 | |
'on': | |
pull_request: | |
paths-ignore: | |
- README.md | |
branches: | |
- main | |
jobs: | |
unit-test: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version-file: go.mod | |
cache: true | |
- name: Install Dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install python3-pip | |
sudo pip3 install invoke | |
- name: Lint | |
run: invoke lint -e host | |
- name: Run unit tests | |
run: invoke test |