File tree 3 files changed +20
-5
lines changed
3 files changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -103,4 +103,19 @@ jobs:
103
103
podfile-path : __tests__/podfile-example/Podfile3.lock
104
104
105
105
- name : Validate version
106
- run : pod --version | grep "1.9.1"
106
+ run : pod --version | grep "1.9.1"
107
+
108
+ ubuntu-install :
109
+ name : install latest version
110
+ runs-on : ubuntu-latest
111
+ steps :
112
+ - name : Checkout
113
+ uses : actions/checkout@v2
114
+
115
+ - name : setup-cocoapods
116
+ uses : ./
117
+ with :
118
+ version : latest
119
+
120
+ - name : Validate version
121
+ run : pod --version
Original file line number Diff line number Diff line change @@ -1573,8 +1573,8 @@ const core = __importStar(__webpack_require__(470));
1573
1573
const installer_1 = __webpack_require__ ( 749 ) ;
1574
1574
const run = async ( ) => {
1575
1575
try {
1576
- if ( process . platform !== "darwin" ) {
1577
- throw new Error ( `This task is intended only for macOS platform . It can't be run on '${ process . platform } ' platform` ) ;
1576
+ if ( process . platform !== "darwin" && process . platform !== "linux" ) {
1577
+ throw new Error ( `This task is intended for macOS and linux platforms . It can't be run on '${ process . platform } ' platform` ) ;
1578
1578
}
1579
1579
let versionSpec = core . getInput ( "version" , { required : false } ) ;
1580
1580
const podfilePath = core . getInput ( "podfile-path" , { required : false } ) ;
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ import { CocoapodsInstaller } from "./installer";
3
3
4
4
const run = async ( ) : Promise < void > => {
5
5
try {
6
- if ( process . platform !== "darwin" ) {
7
- throw new Error ( `This task is intended only for macOS platform . It can't be run on '${ process . platform } ' platform` ) ;
6
+ if ( process . platform !== "darwin" && process . platform !== "linux" ) {
7
+ throw new Error ( `This task is intended for macOS and linux platforms . It can't be run on '${ process . platform } ' platform` ) ;
8
8
}
9
9
10
10
let versionSpec = core . getInput ( "version" , { required : false } ) ;
You can’t perform that action at this time.
0 commit comments