5
5
pull_request :
6
6
paths :
7
7
- " quickwit/quickwit-ui/**"
8
+ - " .github/workflows/ui-ci.yml"
8
9
push :
9
10
branches :
10
11
- main
11
12
- trigger-ci-workflow
12
13
paths :
13
14
- " quickwit/quickwit-ui/**"
15
+ - " .github/workflows/ui-ci.yml"
14
16
15
17
jobs :
16
18
tests :
17
- name : ${{ matrix.task.name }} (${{ matrix.os }})
18
- runs-on : ${{ matrix.os }}
19
+ name : ${{ matrix.task.name }}
20
+ runs-on : ubuntu-latest
19
21
strategy :
20
22
fail-fast : false
21
23
matrix :
22
- os : [ubuntu-latest]
23
24
task :
24
25
- name : Cypress run
25
26
command : |
32
33
command : yarn --cwd quickwit-ui lint
33
34
- name : Unit Test
34
35
command : yarn --cwd quickwit-ui test
35
- container : public.ecr.aws/l6o9a3f9/quickwit-builder:latest
36
36
services :
37
37
# PostgreSQL service container
38
38
postgres :
@@ -57,17 +57,24 @@ jobs:
57
57
QW_TEST_DATABASE_URL : postgres://quickwit-dev:quickwit-dev@postgres:5432/quickwit-metastore-dev
58
58
steps :
59
59
- uses : actions/checkout@v4
60
- - uses : c-hive/gha-yarn-cache@v2
60
+ - uses : actions/setup-node@v3
61
61
with :
62
- directory : ./quickwit/quickwit-ui
62
+ node-version : 18
63
+ cache : " yarn"
64
+ cache-dependency-path : quickwit/quickwit-ui/yarn.lock
65
+ - name : Install rust
66
+ run : curl https://sh.rustup.rs -sSf | sh -s -- -y
67
+ - uses : arduino/setup-protoc@v2
68
+ with :
69
+ version : " 21.x"
63
70
- name : Install JS dependencies
64
71
run : yarn --cwd quickwit-ui install
65
72
working-directory : ./quickwit
66
- - name : Setup cache
73
+ - name : Setup Rust cache
67
74
if : matrix.task.name == 'Cypress run'
68
75
uses : Swatinem/rust-cache@v2
69
76
with :
70
- key : " v1-${{ matrix.task.name }} "
77
+ key : " default "
71
78
workspaces : " ./quickwit -> target"
72
79
- name : ${{ matrix.task.name }}
73
80
run : ${{ matrix.task.command }}
0 commit comments