2024-01-26 23:56:26 +01:00
|
|
|
name: E2E Testing
|
|
|
|
|
|
|
|
on:
|
2024-01-27 00:00:20 +01:00
|
|
|
push
|
2024-01-26 23:56:26 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Set up Node.js
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
2024-01-27 00:04:46 +01:00
|
|
|
node-version: 18
|
2024-01-26 23:56:26 +01:00
|
|
|
|
|
|
|
- name: Install dependencies
|
2024-01-27 00:01:44 +01:00
|
|
|
run: npm install
|
2024-01-26 23:56:26 +01:00
|
|
|
|
|
|
|
- name: Run e2e tests
|
|
|
|
run: npm run e2e
|
2024-02-15 19:51:37 +01:00
|
|
|
|
|
|
|
- name: ntfy-notifications-failure
|
2024-02-15 16:29:57 +01:00
|
|
|
uses: niniyas/ntfy-action@master
|
2024-02-15 19:51:37 +01:00
|
|
|
if: failure()
|
2024-02-15 16:29:57 +01:00
|
|
|
with:
|
|
|
|
url: ${{ secrets.NTFY_URL }}
|
|
|
|
topic: ${{ secrets.NTFY_TOPIC }}
|
2024-02-15 19:51:37 +01:00
|
|
|
priority: 5
|
2024-02-15 20:00:55 +01:00
|
|
|
headers: '{"authorization": "${{ secrets.NTFY_HEADERS }}"}'
|
2024-02-15 20:09:28 +01:00
|
|
|
tags: -1,rotating_light,action,failed,
|
2024-02-15 19:51:37 +01:00
|
|
|
details: Workflow has failed!
|
2024-02-15 20:05:02 +01:00
|
|
|
icon: 'https://styles.redditmedia.com/t5_32uhe/styles/communityIcon_xnt6chtnr2j21.png'
|
|
|
|
image: true
|
2024-02-15 16:29:57 +01:00
|
|
|
|
2024-02-15 19:51:37 +01:00
|
|
|
- name: ntfy-notifications-success
|
|
|
|
uses: niniyas/ntfy-action@master
|
|
|
|
if: success()
|
|
|
|
with:
|
|
|
|
url: ${{ secrets.NTFY_URL }}
|
|
|
|
topic: ${{ secrets.NTFY_TOPIC }}
|
|
|
|
priority: 4
|
|
|
|
headers: '{"authorization": "${{ secrets.NTFY_HEADERS }}"}'
|
|
|
|
tags: +1,partying_face,action,successfully,completed
|
|
|
|
details: Workflow has been successfully completed!
|
|
|
|
icon: 'https://styles.redditmedia.com/t5_32uhe/styles/communityIcon_xnt6chtnr2j21.png'
|
|
|
|
image: true
|
2024-02-15 16:29:57 +01:00
|
|
|
|