-
Notifications
You must be signed in to change notification settings - Fork 7
78 lines (76 loc) · 2.01 KB
/
assets.yaml
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
name: CI / Console UI
on:
push:
branches:
- "master"
paths:
- ".github/workflows/assets.yaml"
- "assets/**"
pull_request:
branches:
- "**"
paths:
- ".github/workflows/assets.yaml"
- "assets/**"
jobs:
# e2e:
# name: End-to-end test
# runs-on: ubuntu-20.04
# env:
# CYPRESS_EMAIL: ${{ secrets.CYPRESS_EMAIL }}
# CYPRESS_PASSWORD: ${{ secrets.CYPRESS_PASSWORD }}
# BASE_URL: console.gcp.onplural.sh
# defaults:
# run:
# working-directory: assets
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: 16.15.0
# - run: yarn --immutable
# - run: cd e2e && yarn --immutable
# - run: yarn e2e:start
# - uses: 8398a7/action-slack@v3
# if: failure()
# with:
# status: ${{ job.status }}
# fields: workflow,repo,commit,author,pullRequest
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CYPRESS_WEBHOOK }}
# - name: Upload Screenshots and Videos to Slack
# if: failure()
# uses: trymbill/cypress-slack-video-upload-action@v1.3.0
# with:
# token: ${{ secrets.SLACK_CYPRESS_TOKEN }}
# workdir: assets/e2e/cypress
# channels: cypress-artifacts
# message-text: "See the attached videos and screenshots for more information."
test:
name: Unit test
runs-on: ubuntu-20.04
defaults:
run:
shell: bash
working-directory: assets
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 21.6.2
- run: yarn --immutable
- run: yarn test
lint:
name: Lint
runs-on: ubuntu-20.04
defaults:
run:
shell: bash
working-directory: assets
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 21.6.2
- run: yarn --immutable
- run: yarn lint