22198: Remove 'href' where it appears in processing API responses
[arvados.git] / .github / workflows / tests.yml
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 name: Arvados Tests
6
7 on:
8   workflow_dispatch:
9   pull_request:
10     branches:
11       - main
12
13 jobs:
14   workbench2:
15     name: Workbench2 Tests
16     runs-on: ubuntu-latest
17     steps:
18       - name: Free Disk Space (Ubuntu)
19         uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
20         with:
21           # true = remove
22           # false = keep
23           # this might remove tools that are actually needed, (Node, Go, Python, Ruby, ...)
24           # if set to "true" but frees about 6 GB
25           tool-cache: false
26           # all of these default to true, but feel free to set to
27           # "false" if necessary for your workflow
28           android: true
29           dotnet: true
30           haskell: true
31           large-packages: true
32           # Cleaning up images causes some failure with the docker build/tests
33           docker-images: false
34           # Keep swap to avoid thrashing unless we really need the space
35           swap-storage: false
36       - name: Checkout code
37         uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
38       - name: Setup buildx
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
42         with:
43           context: .
44           file: "services/workbench2/docker/Dockerfile"
45           tags: workbench2-test:latest
46           load: true
47           cache-from: type=gha
48           cache-to: type=gha,mode=max
49           push: false
50       - name: Run wb2 integration tests
51         uses: addnab/docker-run-action@4f65fabd2431ebc8d299f8e5a018d79a769ae185 # v3
52         with:
53           image: workbench2-test:latest
54           # Timeout workaround to prevent orphaned browser process https://github.com/cypress-io/cypress/issues/28397
55           options: >-
56             -v ${{github.workspace}}:/usr/src/arvados
57             -w /usr/src/arvados/services/workbench2
58             --env CYPRESS_INTERNAL_BROWSER_CONNECT_TIMEOUT=300000
59           run: |
60             yarn install
61             yarn test || exit $?
62             tools/run-integration-tests.sh -a /usr/src/arvados