Skip to content

Commit

Permalink
Adding unit tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
charliecon committed Jul 26, 2024
1 parent abc04ab commit dde4c06
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Unit Tests
on:
push:
paths-ignore:
- 'README.md'
jobs:
# ensure the code builds...
build:
name: Unit Tests
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.20'
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Run Unit Tests
env:
TF_UNIT: *
TF_LOG: 'DEBUG'
TF_LOG_PATH: ${{ github.workspace }}/test.log

run: |
go test ./genesyscloud/... -v -run TestUnit
- name: 'Upload Logs'
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: unit test logs
path: ${{ github.workspace }}/test.log
retention-days: 5

0 comments on commit dde4c06

Please sign in to comment.