-
Notifications
You must be signed in to change notification settings - Fork 24
80 lines (66 loc) · 2.34 KB
/
nightly.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Nightly Test Pipeline
on:
workflow_dispatch: {}
schedule:
# Runs every day at 12:00 AM UTC
- cron: '0 0 * * *'
jobs:
nightly:
runs-on: ubuntu-latest
# container:
# image: scalableminds/puppeteer:fix_wk_nightly
steps:
- name: Checkout code
uses: actions/checkout@v3
# - name: Remove dev-deployment
# run: |
# curl -X POST \
# -H "X-Auth-Token: ${{ secrets.RELEASE_API_TOKEN }}" \
# https://kubernetix.scm.io/hooks/remove/webknossos/dev/master?user=CI+%28nightly%29
# - name: Wait 3 minutes
# run: sleep 180
# - name: Install dev-deployment
# run: |
# curl -X POST \
# -H "X-Auth-Token: ${{ secrets.RELEASE_API_TOKEN }}" \
# https://kubernetix.scm.io/hooks/install/webknossos/dev/master?user=CI+%28nightly%29
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies and wait
run: corepack enable && yarn install --immutable
# run: |
# yarn install --immutable # &
# sleep 180 &
# wait
- name: Refresh datasets
run: |
curl -X POST --fail https://master.webknossos.xyz/data/triggers/checkInboxBlocking?token=${{ secrets.WK_AUTH_TOKEN }}
- name: Run screenshot tests
run: |
URL=https://master.webknossos.xyz/ \
timeout 3000 \
yarn test-screenshot
env:
WK_AUTH_TOKEN: ${{ secrets.WK_AUTH_TOKEN }}
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY : ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
- name: Upload screenshots as artifact
uses: actions/upload-artifact@v3
with:
name: screenshots
path: frontend/javascripts/test/screenshots
- name: Upload type-check snapshots as artifact
uses: actions/upload-artifact@v3
with:
name: snapshots
path: frontend/javascripts/test/snapshots/type-check
- name: Bundle screenshots
if: always()
run: |
tar -czvf screenshots.tar frontend/javascripts/test/screenshots
- name: Upload bundled screenshots as artifact
uses: actions/upload-artifact@v3
with:
name: bundled-screenshots
path: screenshots.tar