21642: Update caniuse
[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: Checkout code
19         uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
20       - name: Setup buildx
21         uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
22       - name: Build wb2 test container
23         uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
24         with:
25           context: .
26           file: "services/workbench2/docker/Dockerfile"
27           tags: workbench2-test:latest
28           load: true
29           cache-from: type=gha
30           cache-to: type=gha,mode=max
31           push: false
32       - name: Run wb2 integration tests
33         uses: addnab/docker-run-action@4f65fabd2431ebc8d299f8e5a018d79a769ae185 # v3
34         with:
35           image: workbench2-test:latest
36           options: -v ${{github.workspace}}:/usr/src/arvados -w /usr/src/arvados/services/workbench2
37           run: |
38             yarn install
39             yarn test --no-watchAll --bail --ci || exit $?
40             tools/run-integration-tests.sh -a /usr/src/arvados