File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed
Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ name : test-executables
2+ on :
3+ push :
4+ branches :
5+ - main
6+ - " renovate/**"
7+ pull_request :
8+
9+ jobs :
10+ build-executables :
11+ name : Build executables
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : Kesin11/actions-timeline@3046833d9aacfd7745c5264b7f3af851c3e2a619 # v2
15+ - uses : actions/checkout@v4
16+ - uses : pnpm/action-setup@v3
17+ - uses : actions/setup-node@v6
18+ with :
19+ node-version : " 24"
20+ cache : " pnpm"
21+
22+ - run : pnpm install --frozen-lockfile
23+ - run : pnpm build:executables
24+ - run : jq -r '.version' ./package.json > bin/EXPECTED_VERSION
25+ - uses : actions/upload-artifact@v4
26+ with :
27+ name : executables
28+ path : bin/*
29+ retention-days : 1day
30+
31+ test-executables :
32+ name : Test executables - ${{ matrix.os }}
33+ runs-on : ${{ matrix.os }}
34+ needs : build-executables
35+
36+ strategy :
37+ matrix :
38+ os : [ubuntu-latest, windows-latest, macos-latest]
39+
40+ steps :
41+ - uses : actions/download-artifact@v5
42+ with :
43+ name : executables
44+ - run : chmod +x ./cli-kintone-*
45+ - run : ./cli-kintone-linux --version > ACTUAL_VERSION
46+ if : ${{ matrix.os == 'ubuntu-latest' }}
47+ - run : ./cli-kintone-win.exe --version > ACTUAL_VERSION
48+ if : ${{ matrix.os == 'windows-latest' }}
49+ - run : ./cli-kintone-macos --version > ACTUAL_VERSION
50+ if : ${{ matrix.os == 'macos-latest' }}
51+ - run : diff EXPECTED_VERSION ACTUAL_VERSION
You can’t perform that action at this time.
0 commit comments