From 942be3e7fc2d79e76047710d8705fa6584ca3117 Mon Sep 17 00:00:00 2001 From: Stephen Smith Date: Sun, 7 Apr 2024 22:18:17 -0400 Subject: [PATCH] Add github test workflow Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- .github/workflows/tests.yml | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000000..f8224e417f --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,40 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + +name: Arvados Tests + +on: + workflow_dispatch: + pull_request: + branches: + - main + +jobs: + workbench2: + name: Workbench2 Tests + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - name: Setup buildx + uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0 + - name: Build wb2 test container + uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0 + with: + context: . + file: "services/workbench2/docker/Dockerfile" + tags: workbench2-test:latest + load: true + cache-from: type=gha + cache-to: type=gha,mode=max + push: false + - name: Run wb2 integration tests + uses: addnab/docker-run-action@4f65fabd2431ebc8d299f8e5a018d79a769ae185 # v3 + with: + image: workbench2-test:latest + options: -v ${{github.workspace}}:/usr/src/arvados -w /usr/src/arvados/services/workbench2 + run: | + yarn install + yarn test --no-watchAll --bail --ci || exit $? + tools/run-integration-tests.sh -a /usr/src/arvados -- 2.30.2