From a617edadf5a8a5e8d6f7b96105792d02acbb5ce7 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Thu, 3 Nov 2022 17:48:27 +0100 Subject: [PATCH] Add experimental kradalby gh runner Remove old v2 runner in favour of self-hosted Signed-off-by: Kristoffer Dalby --- .../workflows/test-integration-v2-general.yml | 35 ------------------- .../test-integration-v2-kradalby.yml | 27 ++++++++++++++ 2 files changed, 27 insertions(+), 35 deletions(-) delete mode 100644 .github/workflows/test-integration-v2-general.yml create mode 100644 .github/workflows/test-integration-v2-kradalby.yml diff --git a/.github/workflows/test-integration-v2-general.yml b/.github/workflows/test-integration-v2-general.yml deleted file mode 100644 index f841422d..00000000 --- a/.github/workflows/test-integration-v2-general.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Integration Test v2 - -on: [pull_request] - -jobs: - integration-test-v2: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 2 - - - name: Set Swap Space - uses: pierotofy/set-swap-space@master - with: - swap-size-gb: 10 - - - name: Get changed files - id: changed-files - uses: tj-actions/changed-files@v14.1 - with: - files: | - *.nix - go.* - **/*.go - integration_test/ - config-example.yaml - - - uses: cachix/install-nix-action@v16 - if: steps.changed-files.outputs.any_changed == 'true' - - - name: Run general integration tests - if: steps.changed-files.outputs.any_changed == 'true' - run: nix develop --command -- make test_integration_v2_general diff --git a/.github/workflows/test-integration-v2-kradalby.yml b/.github/workflows/test-integration-v2-kradalby.yml new file mode 100644 index 00000000..4416a7d4 --- /dev/null +++ b/.github/workflows/test-integration-v2-kradalby.yml @@ -0,0 +1,27 @@ +name: Integration Test v2 - kradalby + +on: [pull_request] + +jobs: + integration-test-v2-kradalby: + runs-on: [self-hosted, linux, x64, nixos, docker] + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 2 + + # - name: Get changed files + # id: changed-files + # uses: tj-actions/changed-files@v14.1 + # with: + # files: | + # *.nix + # go.* + # **/*.go + # integration_test/ + # config-example.yaml + + - name: Run general integration tests + # if: steps.changed-files.outputs.any_changed == 'true' + run: nix develop --command -- make test_integration_v2_general