Skip to content

Commit 02e2167

Browse files
committed
action - add mac-arm tests
1 parent 6b8f8aa commit 02e2167

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,7 @@ coverage
77
*.iml
88
.DS_Store
99
/testdata/vcsclientmock.go
10-
action/src/*
11-
action/test/*
10+
/action/lib/src/main.js
11+
/action/lib/src/utils.js
12+
/action/lib/test/
13+
/action/lib/test/main.spec.js

action/test/main.spec.ts

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,10 @@ describe('Frogbot Action Tests', () => {
1717
describe('Frogbot URL Tests', () => {
1818
const myOs: jest.Mocked<typeof os> = os as any;
1919
let cases: string[][] = [
20-
[
21-
'win32' as NodeJS.Platform,
22-
'amd64',
23-
'jfrog.exe',
24-
'https://releases.jfrog.io/artifactory/frogbot/v1/1.2.3/frogbot-windows-amd64/jfrog.exe',
25-
],
20+
['win32' as NodeJS.Platform, 'amd64', 'jfrog.exe', 'https://releases.jfrog.io/artifactory/frogbot/v1/1.2.3/frogbot-windows-amd64/jfrog.exe',],
2621
['darwin' as NodeJS.Platform, 'amd64', 'jfrog', 'https://releases.jfrog.io/artifactory/frogbot/v1/1.2.3/frogbot-mac-386/jfrog'],
22+
['darwin' as NodeJS.Platform, 'arm64', 'jfrog', 'https://releases.jfrog.io/artifactory/frogbot/v1/1.2.3/frogbot-mac-arm64/jfrog'],
23+
['darwin' as NodeJS.Platform, 'arm', 'jfrog', 'https://releases.jfrog.io/artifactory/frogbot/v1/1.2.3/frogbot-mac-arm/jfrog'],
2724
['linux' as NodeJS.Platform, 'amd64', 'jfrog', 'https://releases.jfrog.io/artifactory/frogbot/v1/1.2.3/frogbot-linux-amd64/jfrog'],
2825
['linux' as NodeJS.Platform, 'arm64', 'jfrog', 'https://releases.jfrog.io/artifactory/frogbot/v1/1.2.3/frogbot-linux-arm64/jfrog'],
2926
['linux' as NodeJS.Platform, '386', 'jfrog', 'https://releases.jfrog.io/artifactory/frogbot/v1/1.2.3/frogbot-linux-386/jfrog'],
@@ -58,6 +55,18 @@ describe('Frogbot Action Tests', () => {
5855
'jfrog',
5956
'https://myfrogbot.com/artifactory/frogbot-remote/artifactory/frogbot/v2/2.8.7/frogbot-mac-386/jfrog',
6057
],
58+
[
59+
'darwin' as NodeJS.Platform,
60+
'arm64',
61+
'jfrog',
62+
'https://myfrogbot.com/artifactory/frogbot-remote/artifactory/frogbot/v2/2.8.7/frogbot-mac-arm64/jfrog',
63+
],
64+
[
65+
'darwin' as NodeJS.Platform,
66+
'arm',
67+
'jfrog',
68+
'https://myfrogbot.com/artifactory/frogbot-remote/artifactory/frogbot/v2/2.8.7/frogbot-mac-arm/jfrog',
69+
],
6170
[
6271
'linux' as NodeJS.Platform,
6372
'amd64',

0 commit comments

Comments
 (0)