1- on : [push, workflow_dispatch]
1+ on :
2+ [
3+ push,
4+ workflow_dispatch,
5+ ]
26
3- name : " Build, test, clippy"
7+ name : ' Build, test, clippy'
48jobs :
59 fmt :
610 name : Rustfmt
711 runs-on : ubuntu-latest
812 steps :
9- - run : |
13+ - run :
14+ |
1015 sudo apt-get update
1116 sudo apt-get install -y webkit2gtk-4.0 libayatana-appindicator3-dev
1217 - uses : actions/checkout@v2
@@ -38,36 +43,42 @@ jobs:
3843
3944 - name : Get pnpm store directory
4045 id : pnpm-cache
41- run : |
46+ run :
47+ |
4248 echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
4349
4450 - uses : actions/cache@v3
4551 name : Setup pnpm cache
4652 with :
4753 path : ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
4854 key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
49- restore-keys : |
55+ restore-keys :
56+ |
5057 ${{ runner.os }}-pnpm-store-
5158
5259 - name : Install JS deps
5360 working-directory : ./browser/
54- run : |
61+ run :
62+ |
5563 pnpm install
5664 pnpm run playwright-install
5765
5866 - name : Lint JS
5967 working-directory : ./browser/
60- run : |
68+ run :
69+ |
6170 pnpm run lint
6271
6372 - name : Test JS (no e2e)
6473 working-directory : ./browser/
65- run : |
74+ run :
75+ |
6676 pnpm run test
6777
6878 - name : Build JS
6979 working-directory : ./browser/
70- run : |
80+ run :
81+ |
7182 pnpm run build
7283
7384 - name : Save JS Build Artifacts
7889 e2e :
7990 name : End-to-end tests
8091 runs-on : ubuntu-latest
81- needs : [build_js]
92+ needs :
93+ [
94+ build_js,
95+ ]
8296 steps :
83- - run : |
97+ - run :
98+ |
8499 sudo apt-get update
85100 sudo apt-get install -y webkit2gtk-4.0 libayatana-appindicator3-dev
86101 - uses : actions/checkout@v3
@@ -131,20 +146,23 @@ jobs:
131146
132147 - name : Get pnpm store directory
133148 id : pnpm-cache
134- run : |
149+ run :
150+ |
135151 echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
136152
137153 - uses : actions/cache@v3
138154 name : Setup pnpm cache
139155 with :
140156 path : ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
141157 key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
142- restore-keys : |
158+ restore-keys :
159+ |
143160 ${{ runner.os }}-pnpm-store-
144161
145162 - name : Install Playwright
146163 working-directory : ./browser/
147- run : |
164+ run :
165+ |
148166 pnpm install
149167 pnpm run playwright-install
150168
@@ -156,6 +174,7 @@ jobs:
156174 env :
157175 FRONTEND_URL : http://localhost:9883
158176 LANGUAGE : ' en_GB'
177+ DELETE_PREVIOUS_TEST_DRIVES : ' false'
159178 run : pnpm run test-e2e
160179
161180 # Coverage
0 commit comments