Liu Song’s Projects


~/Projects/mqtt-ios

git clone https://code.lsong.org/mqtt-ios

Commit

Commit
de974925a30944023ffc985b6f3a01cd8f94295d
Author
Philipp Arndt <[email protected]>
Date
2022-02-05 12:01:34 +0100 +0100
Diffstat
 .github/workflows/screenshots.yml | 35 +++++++++++++++++++++++++++++++++
 src/fastlane/.gitignore | 3 +
 src/fastlane/report.xml | 18 ----------------

Screenshots action (#104)

* clean await messages background

* screenshots action

* -

* ignore report


diff --git a/.github/workflows/screenshots.yml b/.github/workflows/screenshots.yml
new file mode 100644
index 0000000000000000000000000000000000000000..656e035b0ebb7c25be2a3353a35b3ef25c358ad6
--- /dev/null
+++ b/.github/workflows/screenshots.yml
@@ -0,0 +1,35 @@
+on: 
+  workflow_dispatch:
+
+jobs:
+  screenshots:
+    runs-on: macOS-latest
+
+    steps:
+    - uses: actions/checkout@master
+    
+    - name: Install ActiveMQ
+      run: |
+        brew install apache-activemq
+        /usr/local/opt/activemq/bin/activemq start
+
+    - name: Set XCode Version
+      run: sudo xcode-select -s /Applications/Xcode_13.2.app
+    
+    - name: Install Dependences
+      run: |
+        cd src
+        pod repo update
+        pod install
+      shell: bash
+    
+    - name: Create screenshots
+      run: |
+        cd src
+        fastlane screenshots
+
+    - uses: actions/upload-artifact@v2
+      with:
+        name: screenshots
+        path: src/fastlane/screenshots/**/*.png
+        retention-days: 5
\ No newline at end of file




diff --git a/src/fastlane/.gitignore b/src/fastlane/.gitignore
index 1586aec3c4abab49cf6c0fd175b724686b6ef8d4..3000d229a021ac1b8522295dff43b626f93263a6 100644
--- a/src/fastlane/.gitignore
+++ b/src/fastlane/.gitignore
@@ -1 +1,2 @@
-screenshots/
\ No newline at end of file
+screenshots/
+report.xml
\ No newline at end of file




diff --git a/src/fastlane/report.xml b/src/fastlane/report.xml
deleted file mode 100644
index 2c10bce5401f74728cf1c2789f1031d7a0470c6d..0000000000000000000000000000000000000000
--- a/src/fastlane/report.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<testsuites>
-  <testsuite name="fastlane.lanes">
-    
-    
-    
-      
-      <testcase classname="fastlane.lanes" name="0: default_platform" time="0.000751">
-        
-      </testcase>
-    
-      
-      <testcase classname="fastlane.lanes" name="1: capture_screenshots" time="400.287116">
-        
-      </testcase>
-    
-  </testsuite>
-</testsuites>