-
Notifications
You must be signed in to change notification settings - Fork 14
39 lines (34 loc) · 1 KB
/
run_smoketests.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
name: Run smoketests
on:
schedule:
- cron: "30 5-12 * * MON-FRI"
workflow_dispatch:
jobs:
smoketests:
name:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Setup Node 16
uses: actions/setup-node@v3
with:
node-version: "20.17.0"
- name: Install dependencies
uses: nick-fields/retry@v3
with:
max_attempts: 5
timeout_minutes: 5
retry_wait_seconds: 120
command: |
cd smoketests
npm ci
- name: Test kansalaisen näkymä testiopintopolussa
run: cd smoketests && npm run qa:kansalainen
- name: Report failure
uses: ravsamhq/notify-slack-action@95a35215cdf7ab510d2cdd20ae94f342d212a1a1
if: ${{ failure() }}
with:
status: ${{ job.status }}
notification_title: "Run smoketests: failure in kansalaisen näkymä testiopintopolussa"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}