-
-
Notifications
You must be signed in to change notification settings - Fork 287
/
Copy pathconfig.yml
61 lines (54 loc) · 1.47 KB
/
config.yml
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
version: 2.1
branch_filters: &job_filters
filters:
branches:
ignore: translations
executors:
musicbrainz-tests:
docker:
- image: metabrainz/musicbrainz-tests:v-2024-08-04
user: root
working_directory: /home/musicbrainz/musicbrainz-server
jobs:
js-perl-and-pgtap:
environment:
TERM: ansi
executor: musicbrainz-tests
steps:
- restore_cache:
keys:
- v1-source-{{ .Branch }}-{{ .Revision }}
- v1-source-{{ .Branch }}-
- v1-source-
- checkout
- run: |
chown -R musicbrainz:musicbrainz .
# The checkout step configures git to skip gc, so we run it
# here to reduce .git's size before saving it to cache.
sudo -E -H -u musicbrainz git gc
- save_cache:
key: v1-source-{{ .Branch }}-{{ .Revision }}
paths:
- ".git"
- restore_cache:
keys:
- v2-node-{{ checksum "yarn.lock" }}
- v2-node-
- run: |
chown -R musicbrainz:musicbrainz .
corepack enable
sudo -E -H -u musicbrainz yarn
- save_cache:
key: v2-node-{{ checksum "yarn.lock" }}
paths:
- "node_modules"
- run: |
./docker/musicbrainz-tests/run_circleci_tests.sh
- store_test_results:
path: ./junit_output
workflows:
version: 2.1
build-and-test:
jobs:
- js-perl-and-pgtap:
<<: *job_filters