-
Notifications
You must be signed in to change notification settings - Fork 20
89 lines (75 loc) · 1.84 KB
/
test.yml
File metadata and controls
89 lines (75 loc) · 1.84 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: 'build-test'
on:
pull_request:
paths-ignore:
- '**/*.md'
push:
branches:
- main
paths-ignore:
- '**/*.md'
schedule:
# Daily 5am australian/brisbane time (7pm UTC)
- cron: '0 19 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup node 24
uses: actions/setup-node@v6
with:
node-version: 24.11.1
- name: Install package dependencies
run: npm install
- name: Compile and run tests
run: npm run all
- name: Test Report
uses: phoenix-actions/test-reporting@v15
if: success() || failure()
with:
name: JEST Tests
path: 'reports/jest-*.xml'
reporter: jest-junit
output-to: step-summary
test-matrix:
name: ${{ matrix.os-name }} (${{ matrix.arch }})
runs-on: ${{ matrix.os }}
needs: build
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
os-name: Linux
arch: amd64
- os: ubuntu-24.04-arm
os-name: Linux
arch: arm64
- os: macos-latest-large
os-name: macOS
arch: amd64
- os: macos-latest
os-name: macOS
arch: arm64
- os: windows-latest
os-name: Windows
arch: amd64
- os: windows-11-arm
os-name: Windows
arch: arm64
steps:
- uses: actions/checkout@v6
- name: Install Octopus CLI
uses: ./
with:
version: latest
- name: Check Octopus CLI version
run: octopus version
test:
runs-on: ubuntu-latest
needs: test-matrix
if: github.event_name == 'pull_request'
steps:
- run: echo "PR checks complete"