Skip to content

Commit

Permalink
test: unit tests with workflow (#444)
Browse files Browse the repository at this point in the history
* test: data group plan modifier tests

* fix: unit test workflow
  • Loading branch information
wai-wong-edb authored Feb 7, 2024
1 parent 9d12523 commit 0b94d3f
Show file tree
Hide file tree
Showing 2 changed files with 154 additions and 179 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/unit-test.yml
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 ./...
Loading

0 comments on commit 0b94d3f

Please sign in to comment.