-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (44 loc) · 1.09 KB
/
test.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
name: "Test"
on:
push:
branches: ["master"]
paths:
- "src/**"
pull_request:
branches: ["master"]
paths:
- "src/**"
workflow_dispatch:
jobs:
test:
name: "Test"
runs-on: ubuntu-latest
timeout-minutes: 5
if: ${{ !contains(github.event.head_commit.message, '#notest') }}
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Setup Node"
uses: actions/setup-node@v4
with:
node-version: 20
- name: "Install"
run: |
npm install
- name: "Lint"
run: |
npm run lint
- name: "Test"
run: |
npm run test
- name: "Push Artifacts"
uses: cssnr/push-artifacts-action@master
with:
path: "tests/screenshots/"
host: ${{ secrets.RSYNC_HOST }}
user: ${{ secrets.RSYNC_USER }}
pass: ${{ secrets.RSYNC_PASS }}
port: ${{ secrets.RSYNC_PORT }}
base: "/static"
webhost: "https://artifacts.hosted-domains.com"
webhook: ${{ secrets.DISCORD_WEBHOOK }}