Skip to content

Implement unique project name validation in Digger configuration #1762

Implement unique project name validation in Digger configuration

Implement unique project name validation in Digger configuration #1762

Workflow file for this run

---
name: Libs tests
"on":
push:
branches: ['develop']
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Setup Opentofu
uses: opentofu/[email protected]
with:
tofu_version: 1.6.0-alpha3
- name: Download Go
uses: actions/setup-go@v5
with:
go-version: 1.21.1
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Deps
run: |
pwd
go get -v ./...
working-directory: libs
- name: Install Azurite
run: npm install -g azurite
- name: Start Azurite service
run: azurite --silent &
- name: Determine if PR is from external contributor
id: pr_check
run: |
if [ "${{ github.event.pull_request.head.repo.full_name }}" = "${{ github.repository }}" ]; then
echo "is_external=false" >> $GITHUB_OUTPUT
else
echo "is_external=true" >> $GITHUB_OUTPUT
fi
- name: Test
run: |
if [ "${{ steps.pr_check.outputs.is_external }}" = "true" ]; then
go test -v -tags=external ./...
else
go test -v ./...
fi
env:
DIGGER_LICENSE_KEY: ${{ secrets.TEST_DIGGER_LICENSE_KEY}}
working-directory: libs