Skip to content

Commit

Permalink
ci: update workflow, paramedic-plugin, and fix missing medic.json (#259)
Browse files Browse the repository at this point in the history
* feat(ios): add ios 16 support, revert app scheme to file & include appium
* ci(ios): update workflow dependencies
* fix(paramedic-plugin): missing medic.json, update socket.io, add missing LICENSE
* ci: update lint workflow
* ci: update chrome workflow
* ci(ios): add xcode 14.x & iOS 16.x
  • Loading branch information
erisu committed Jun 5, 2023
1 parent a4e3ba3 commit cabc109
Show file tree
Hide file tree
Showing 13 changed files with 14,843 additions and 3,491 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/chrome.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ jobs:
node-version: 16

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ env.node-version }}

Expand All @@ -61,7 +61,7 @@ jobs:
npm ci
- name: Run paramedic install
if: ${{ endswith(env.repo, '/cordova-paramedic') != true }}
if: ${{ endswith(env.repo, '/cordova-paramedic') != true }}
run: npm i -g github:apache/cordova-paramedic

- name: Run paramedic tests
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,16 @@ jobs:
ios-version: 15.x
xcode-version: 13.x

- os-version: macos-12
ios-version: 16.x
xcode-version: 14.x

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ env.node-version }}
- uses: maxim-lobanov/setup-xcode@881be567d30efed8fb3f12b5099d68c3fb72aa3d
- uses: maxim-lobanov/setup-xcode@9a697e2b393340c3cacd97468baa318e4c883d98
env:
xcode-version: ${{ matrix.versions.xcode-version == '' && env.default_xcode-version || matrix.versions.xcode-version }}
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ jobs:
node-version: 16

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ env.node-version }}

Expand Down
7 changes: 6 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,9 @@
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS


================================================================================
paramedic-plugin/socket.io.min.js
================================================================================
Copyright (c) 2014-2023 Guillermo Rauch
MIT License - http://opensource.org/licenses/mit-license.php
7 changes: 7 additions & 0 deletions conf/pr/local/ios-16.x.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"platform": "ios@latest",
"action": "run",
"cleanUpAfterRun": true,
"target": "^iPhone-14, 16.\\d$",
"verbose": true
}
4 changes: 3 additions & 1 deletion lib/paramedic.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ class ParamedicRunner {

writeMedicJson (logUrl) {
logger.normal('cordova-paramedic: writing medic log url to project ' + logUrl);
fs.writeFileSync(path.join('www', 'medic.json'), JSON.stringify({ logurl: logUrl }));
const medicFilePath = path.join(this.tempFolder.name, 'www', 'medic.json');
const medicFileContent = JSON.stringify({ logurl: logUrl });
fs.writeFileSync(medicFilePath, medicFileContent);
}

maybeRunFileTransferServer () {
Expand Down
Loading

0 comments on commit cabc109

Please sign in to comment.