Skip to content

[pre-commit.ci] pre-commit autoupdate #470

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #470

on: [pull_request]
name: Test with PRO features
jobs:
test:
strategy:
matrix:
go-version: [1.21.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout source codes
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Test client with nexus3 instance
env:
NEXUS3_LICENSE_B64_ENCODED: ${{ secrets.NEXUS3_LICENSE_B64_ENCODED }}
AZURE_STORAGE_ACCOUNT_KEY: ${{ secrets.AZURE_STORAGE_ACCOUNT_KEY }}
run: |
echo "${NEXUS3_LICENSE_B64_ENCODED}" | base64 -d > scripts/license.lic
make start-services
test -s scripts/license.lic || export SKIP_PRO_TESTS="true"
test -n "${AZURE_STORAGE_ACCOUNT_KEY}" || export SKIP_AZURE_TESTS="true"
make test
make vet
make testacc
make stop-services