summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2021-10-22 10:24:03 +0200
committerGitHub <noreply@github.com>2021-10-22 10:24:03 +0200
commit7cec6476c79834477d1e3246e1e029872acd37f6 (patch)
tree2b3d34eaf2e0a8247f62d7762698742f74dc3097 /.github
parentd1d002164729a6aa60fdf18d0248b41132b78c19 (diff)
downloadspack-7cec6476c79834477d1e3246e1e029872acd37f6.tar.gz
spack-7cec6476c79834477d1e3246e1e029872acd37f6.tar.bz2
spack-7cec6476c79834477d1e3246e1e029872acd37f6.tar.xz
spack-7cec6476c79834477d1e3246e1e029872acd37f6.zip
Remove hard-coded repository in centos6 unit test (#26885)
This makes it easier to run tests in a fork.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/unit_tests.yaml8
1 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/unit_tests.yaml b/.github/workflows/unit_tests.yaml
index b6a3d58934..4b49333c81 100644
--- a/.github/workflows/unit_tests.yaml
+++ b/.github/workflows/unit_tests.yaml
@@ -228,8 +228,8 @@ jobs:
SPACK_TEST_SOLVER: original
run: |
whoami && echo $HOME && cd $HOME
- git clone https://github.com/spack/spack.git && cd spack
- git fetch origin ${{ github.ref }}:test-branch
+ git clone "${{ github.server_url }}/${{ github.repository }}.git" && cd spack
+ git fetch origin "${{ github.ref }}:test-branch"
git checkout test-branch
bin/spack unit-test -x
- name: Run unit tests (only package tests)
@@ -240,8 +240,8 @@ jobs:
SPACK_TEST_SOLVER: original
run: |
whoami && echo $HOME && cd $HOME
- git clone https://github.com/spack/spack.git && cd spack
- git fetch origin ${{ github.ref }}:test-branch
+ git clone "${{ github.server_url }}/${{ github.repository }}.git" && cd spack
+ git fetch origin "${{ github.ref }}:test-branch"
git checkout test-branch
bin/spack unit-test -x -m "not maybeslow" -k "package_sanity"