Skip to content

Commit 2b3bb7f

Browse files
committed
Adding the acceptance tests for Gitlab EE
1 parent 794b87e commit 2b3bb7f

File tree

3 files changed

+38
-1
lines changed

3 files changed

+38
-1
lines changed

.github/workflows/acceptance-tests.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on: [push,pull_request]
33

44
jobs:
55
acceptance-ce:
6+
timeout-minutes: 60
67
runs-on: ubuntu-latest
78
steps:
89
- name: Set up Go
@@ -27,3 +28,39 @@ jobs:
2728
run: |
2829
bash scripts/start-gitlab.sh
2930
make $MAKE_TARGET
31+
32+
acceptance-ee:
33+
timeout-minutes: 60
34+
runs-on: ubuntu-latest
35+
steps:
36+
- name: Set up Go
37+
uses: actions/setup-go@v1
38+
with:
39+
go-version: 1.12
40+
id: go
41+
42+
- name: Check out code repository source code
43+
uses: actions/checkout@v2
44+
45+
- name: Set up Enterprise Edition License file
46+
run: |
47+
openssl version
48+
mkdir license
49+
[[ -n "${{ secrets.ENCRYPT_PASSWORD }}" ]] && echo decrypt
50+
[[ -n "${{ secrets.ENCRYPT_PASSWORD }}" ]] && openssl enc -d -aes-256-cbc -pbkdf2 -iter 20000 -in Gitlab-license.encrypted -out license/Gitlab-license.txt -pass "pass:${{ secrets.ENCRYPT_PASSWORD }}"
51+
chmod 666 license/Gitlab-license.txt || true
52+
echo "::set-env name=GITLAB_LICENSE_FILE::Gitlab-license.txt"
53+
54+
# https://help.github.com/en/actions/reference/workflow-commands-for-github-actions
55+
- name: Set build variables
56+
run: |
57+
echo "::set-env name=MAKE_TARGET::testacc"
58+
echo "::set-env name=GO_FLAGS::-mod=vendor"
59+
echo "::set-env name=GO111MODULE::on"
60+
echo "::set-env name=GITLAB_TOKEN::20char-testing-token"
61+
echo "::set-env name=GITLAB_BASE_URL::http://127.0.0.1:8080/api/v4"
62+
63+
- name: Start Gitlab and run acceptance tests
64+
run: |
65+
bash scripts/start-gitlab.sh
66+
make $MAKE_TARGET

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ website/vendor
3030
!command/test-fixtures/**/*.tfstate
3131
!command/test-fixtures/**/.terraform/
3232

33-
license/JulienPivotto.gitlab-license
33+
license/*

Gitlab-license.encrypted

1.63 KB
Binary file not shown.

0 commit comments

Comments
 (0)