feat: add support for cleanup policies #239
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
on: [pull_request] | |
name: Test | |
jobs: | |
test: | |
strategy: | |
max-parallel: 1 | |
matrix: | |
go-version: [1.21.x, 1.22.x, 1.23.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 }} | |
GOMAXPROCS: "1" | |
run: | | |
echo "${NEXUS3_LICENSE_B64_ENCODED}" | base64 -d > scripts/license.lic | |
make start-services | |
test -s scripts/license.lic || export SKIP_PRO_TESTS="true" | |
if [[ -z ${AZURE_STORAGE_ACCOUNT_KEY} ]]; then export SKIP_AZURE_TESTS="true"; fi | |
make test | |
make stop-services |