aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml8
-rwxr-xr-xtest/integration/example/test.sh6
2 files changed, 9 insertions, 5 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 3f761f1..c20c4cf 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -49,6 +49,10 @@ jobs:
uses: actions/setup-python@v2
- name: Install dependencies
run: pip install -r requirements.txt
+ - name: Set up ssh-agent
+ uses: webfactory/ssh-agent@v0.5.3
+ with:
+ ssh-private-key: '${{ secrets.SSH_KEY }}'
- name: Integration test (example config)
run: ./test/integration/example/test.sh
@@ -120,6 +124,10 @@ jobs:
uses: actions/setup-python@v2
- name: Verify package can be installed
run: python3 -m pip install .
+ - name: Set up ssh-agent
+ uses: webfactory/ssh-agent@v0.5.3
+ with:
+ ssh-private-key: '${{ secrets.SSH_KEY }}'
- name: Integration test (example config)
run: cgitize --config examples/cgitize.toml
- name: Install package builder
diff --git a/test/integration/example/test.sh b/test/integration/example/test.sh
index 6991697..f7b16e6 100755
--- a/test/integration/example/test.sh
+++ b/test/integration/example/test.sh
@@ -177,11 +177,7 @@ test_one_repo() {
main() {
trap cleanup EXIT
- if [ -z "${CI+y}" ]; then
- # Skip this on CI; there're no SSH keys to authenticate against GitHub,
- # etc. there.
- test_ssh
- fi
+ test_ssh
test_https
test_one_repo
}