fix: tests failing to run because Ginkgo isn't available #13
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: Test 🧪 | |
on: | |
pull_request: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
lint: | |
name: Lint 🧹 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: 1.20.* | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
test: | |
name: Test 🧪 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: 1.20.* | |
- name: Install dependencies | |
run: | | |
go get github.com/onsi/ginkgo/v2/ginkgo | |
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | |
ls -l "$(go env GOPATH)/bin" | |
echo "PATH: $PATH" | |
- name: Run tests | |
env: | |
AUTH0_DOMAIN: ${{ secrets.AUTH0_DOMAIN }} | |
AUTH0_CLIENT_ID: ${{ secrets.AUTH0_CLIENT_ID }} | |
AUTH0_CLIENT_SECRET: ${{ secrets.AUTH0_CLIENT_SECRET }} | |
run: make test-ginkgo |