-
Notifications
You must be signed in to change notification settings - Fork 34
31 lines (29 loc) · 1.07 KB
/
feature-branches.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
on: [pull_request]
name: Test
jobs:
test:
strategy:
max-parallel: 1
matrix:
go-version: [1.16.x, 1.17.x, 1.18.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout source codes
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v4
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: |
# Temporarily disabled due to expired license. See https://github.com/datadrivers/terraform-provider-nexus/issues/358
# 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