-
Notifications
You must be signed in to change notification settings - Fork 18
48 lines (38 loc) · 950 Bytes
/
test.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
40
41
42
43
44
45
46
47
48
name: 'build-test'
on:
push:
paths-ignore:
- '**/*.md'
schedule:
# Daily 5am australian/brisbane time (7pm UTC)
- cron: '0 19 * * *'
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
# https://github.com/dorny/test-reporter/issues/168
permissions:
statuses: write
checks: write
steps:
- uses: actions/checkout@v3
- name: Setup node 20
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Install package dependencies
run: npm install
- name: Compile and run tests
run: npm run all
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: JEST Tests
path: 'reports/jest-*.xml'
reporter: jest-junit
- name: Install Octopus CLI
uses: ./
with:
version: latest
- run: octopus version