-
-
Notifications
You must be signed in to change notification settings - Fork 1
106 lines (99 loc) · 2.36 KB
/
pr-func-tests.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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name: Func Tests
on:
pull_request:
jobs:
basic-func-test:
runs-on: ubuntu-24.04
steps:
- name: Checkout action code
uses: actions/checkout@v4
- name: Run Pkg Action
uses: ./
id: basic-func-test
with:
entrypoint: bin/test
basic-func-upload-key-test:
runs-on: ubuntu-24.04
steps:
- name: Checkout action code
uses: actions/checkout@v4
- name: Run Pkg Action
uses: ./
with:
entrypoint: bin/test
upload-key: something-else-${{ github.sha }}
basic-cross-platform-test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-13
- macos-14
- ubuntu-24.04
- windows-2022
steps:
- name: Checkout action code
uses: actions/checkout@v4
- name: Run Pkg Action
uses: ./
with:
entrypoint: bin/test
upload: false
basic-cross-everything-test:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
arch:
- x64
- arm64
node-version:
- "16"
os:
- linux
- macos
- win
pkg:
- "@yao-pkg/[email protected]"
steps:
- name: Checkout action code
uses: actions/checkout@v4
- name: Run Pkg Action
uses: ./
with:
arch: ${{ matrix.arch }}
entrypoint: bin/test
node-version: ${{ matrix.node-version }}
os: ${{ matrix.os }}
pkg: ${{ matrix.pkg }}
upload: false
download:
runs-on: ubuntu-24.04
needs:
- basic-func-test
- basic-func-upload-key-test
env:
TERM: xterm
strategy:
fail-fast: false
matrix:
file:
- pkg-action-node20-linux-x64-${{ github.sha }}
- something-else-${{ github.sha }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download ${{ matrix.file }}
uses: actions/download-artifact@v3
with:
name: ${{ matrix.file }}
path: dist
- name: Test downloads
run: |
echo "${{ matrix.file }}"
ls -lsa dist
chmod +x dist/pkg-action
dist/pkg-action --version