-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: unit tests with workflow (#444)
* test: data group plan modifier tests * fix: unit test workflow
- Loading branch information
1 parent
9d12523
commit 0b94d3f
Showing
2 changed files
with
154 additions
and
179 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: "Test" | ||
|
||
# Run this workflow every time a new commit pushed to your repository | ||
on: push | ||
|
||
env: | ||
GOLANG_VERSION: "1.21.x" | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest, windows-latest, macOS-latest ] | ||
|
||
name: test code base | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
|
||
- name: Configure Git for private modules | ||
shell: bash | ||
env: | ||
GITHUB_API_TOKEN: ${{ secrets.GH_API_TOKEN }} | ||
run: git config --global url."https://x:${GITHUB_API_TOKEN}@github.com".insteadOf "https://github.com" | ||
|
||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ env.GOLANG_VERSION }} | ||
|
||
- name: Run unit tests | ||
run: go test -p=1 -v ./... |
Oops, something went wrong.