Skip to content

Adding unit tests workflow #1

Adding unit tests workflow

Adding unit tests workflow #1

Workflow file for this run

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: *

Check failure on line 22 in .github/workflows/unit-tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/unit-tests.yml

Invalid workflow file

You have an error in your yaml syntax on line 22
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