Run smoketests #3322
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |