-
Notifications
You must be signed in to change notification settings - Fork 2
61 lines (53 loc) · 1.38 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
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
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: GitHub Action self-test
id: self_test
uses: ./
with:
package_id: 'TestNuGetPackage'
version: '2.1.1'
output_folder: './packaging'
base_path: reports
files: |
**/*
nuspec_description: 'self-test description'
nuspec_authors: |
author 1
author 2
nuspec_release_notes: |
this is a multi-line
release note
- uses: actions/upload-artifact@v4
with:
name: TestNuGetPackage.2.1.1
path: ${{ steps.self_test.outputs.package_file_path }}