-
Notifications
You must be signed in to change notification settings - Fork 0
101 lines (76 loc) · 2.52 KB
/
test.yml
File metadata and controls
101 lines (76 loc) · 2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: Test
on:
push:
branches-ignore:
- 'development/**'
permissions:
contents: read
packages: write
jobs:
lint:
name: Lint and typecheck
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup and Build
uses: ./.github/actions/setup-and-build
- name: TypeScript typecheck
run: yarn typecheck
- name: Lint
run: yarn lint
test-mongodb-backend:
name: Test with MongoDB backend
runs-on: ubuntu-24.04
needs: lint
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup and Build
uses: ./.github/actions/setup-and-build
- name: Start Cloudserver with MongoDB backend
run: docker compose -f .github/docker-compose.yml --env-file .github/docker.env --profile mongo up -d --wait
- name: Run MongoDB backend tests
run: yarn test:mongo-backend
test-metadata-backend:
name: Test with Scality metadata backend
runs-on: ubuntu-24.04
needs: lint
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup and Build
uses: ./.github/actions/setup-and-build
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ github.token }}
- name: Start Cloudserver with Scality metadata backend
run: docker compose -f .github/docker-compose.yml --env-file .github/docker.env --profile metadata up -d --wait
- name: Wait for metadata to be ready
run: |
set -o pipefail
bash .github/scripts/wait_for_local_port.bash 9000 40
- name: Run metadata backend tests
run: yarn test:metadata-backend
test-backbeat-apis:
name: Test backbeat apis
runs-on: ubuntu-24.04
needs: lint
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup and Build
uses: ./.github/actions/setup-and-build
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ github.token }}
- name: Start Backbeat with CloudServer
run: docker compose -f .github/docker-compose.yml --env-file .github/docker.env --profile backbeat up -d --wait
- name: Run backbeat apis tests
run: yarn test:backbeat-apis