1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
15 name: Workbench2 Tests
16 runs-on: ubuntu-latest
18 - name: Free Disk Space (Ubuntu)
19 uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
23 # this might remove tools that are actually needed, (Node, Go, Python, Ruby, ...)
24 # if set to "true" but frees about 6 GB
26 # all of these default to true, but feel free to set to
27 # "false" if necessary for your workflow
32 # Cleaning up images causes some failure with the docker build/tests
34 # Keep swap to avoid thrashing unless we really need the space
37 uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
39 uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
40 - name: Build wb2 test container
41 uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
44 file: "services/workbench2/docker/Dockerfile"
45 tags: workbench2-test:latest
48 cache-to: type=gha,mode=max
50 - name: Run wb2 integration tests
51 uses: addnab/docker-run-action@4f65fabd2431ebc8d299f8e5a018d79a769ae185 # v3
53 image: workbench2-test:latest
54 # Timeout workaround to prevent orphaned browser process https://github.com/cypress-io/cypress/issues/28397
56 -v ${{github.workspace}}:/usr/src/arvados
57 -w /usr/src/arvados/services/workbench2
58 --env CYPRESS_INTERNAL_BROWSER_CONNECT_TIMEOUT=300000
62 tools/run-integration-tests.sh -a /usr/src/arvados