Skip to content

Commit d1182c8

Browse files
authored
Merge pull request #55 from github/integration-test
Add an integration test for GitHub Enterprise Server.
2 parents 8c38f80 + 047f5da commit d1182c8

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,24 @@ jobs:
4040
- name: Test
4141
run: go test ./...
4242

43+
integration_ghes:
44+
name: Integration Test (GitHub Enterprise Server)
45+
runs-on: ubuntu-20.04
46+
if: ${{ github.event != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
47+
steps:
48+
- name: Checkout
49+
uses: actions/checkout@v2
50+
- name: Setup Go
51+
uses: actions/setup-go@v2
52+
with:
53+
go-version: 1.14.7
54+
- name: Build
55+
run: go build
56+
- name: Test
57+
run: ./codeql-action-sync sync --destination-url https://ghe.io/ --destination-repository codeql-action-sync-tool/integration-test
58+
env:
59+
CODEQL_ACTION_SYNC_TOOL_DESTINATION_TOKEN: ${{ secrets.INTEGRATION_TEST_GHES_TOKEN }}
60+
4361
lint:
4462
name: Lint
4563
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)