From 99de2a93da8a1f1caeb7dde858c3fcd54365d64d Mon Sep 17 00:00:00 2001 From: Jim Hester Date: Mon, 7 Oct 2019 10:10:49 -0400 Subject: [PATCH 01/13] Add R starter workflow This adds a workflow for [R packages](https://www.r-project.org/). It uses a [setup-r](https://github.com/r-lib/actions/tree/master/setup-r) action and two R packages - [remotes](https://remotes.r-lib.org/) - to install the R package dependencies - [rcmdcheck](https://github.com/r-lib/rcmdcheck) - to run and format the output of the package checking tool used in the R ecosystem. --- ci/properties/r.properties.json | 6 ++++++ ci/r.yml | 23 +++++++++++++++++++++++ icons/r.svg | 14 ++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 ci/properties/r.properties.json create mode 100644 ci/r.yml create mode 100644 icons/r.svg diff --git a/ci/properties/r.properties.json b/ci/properties/r.properties.json new file mode 100644 index 0000000..a9c6c61 --- /dev/null +++ b/ci/properties/r.properties.json @@ -0,0 +1,6 @@ +{ + "name": "R package", + "description": "Create and test an R package on multiple R versions.", + "iconName": "R", + "categories": ["R"] +} diff --git a/ci/r.yml b/ci/r.yml new file mode 100644 index 0000000..fb959bf --- /dev/null +++ b/ci/r.yml @@ -0,0 +1,23 @@ +name: R + +on: [push] + +jobs: + build: + + runs-on: macOS-latest + strategy: + max-parallel: 4 + matrix: + r-version: [3.5.3, 3.6.1] + + steps: + - uses: actions/checkout@v1 + - name: Set up R ${{ matrix.r-version }} + uses: rlib/actions/setup-r@v1 + with: + r-version: ${{ matrix.r-version }} + - name: Install dependencies + run: Rscript -e "install.packages(c('remotes', 'rcmdcheck'))" -e "remotes::install_deps(dependencies = TRUE)" + - name: Check + run: Rscript -e "rcmdcheck::rcmdcheck(args = '--no-manual', error_on = 'error')" diff --git a/icons/r.svg b/icons/r.svg new file mode 100644 index 0000000..78281f7 --- /dev/null +++ b/icons/r.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + From 1c2ed214e050c66dc35b215aa1353d5574e6c17b Mon Sep 17 00:00:00 2001 From: Jim Hester Date: Thu, 16 Apr 2020 13:31:59 -0400 Subject: [PATCH 02/13] Update R workflow based on review feedback --- ci/r.yml | 40 +++++++++++++++++++++++++++------------- 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/ci/r.yml b/ci/r.yml index fb959bf..cad232b 100644 --- a/ci/r.yml +++ b/ci/r.yml @@ -1,23 +1,37 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# +# See https://github.com/r-lib/actions/tree/master/examples#readme for +# additional example workflows available for the R community. + name: R -on: [push] +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: build: - runs-on: macOS-latest strategy: - max-parallel: 4 matrix: - r-version: [3.5.3, 3.6.1] + r-version: [3.5, 3.6] steps: - - uses: actions/checkout@v1 - - name: Set up R ${{ matrix.r-version }} - uses: rlib/actions/setup-r@v1 - with: - r-version: ${{ matrix.r-version }} - - name: Install dependencies - run: Rscript -e "install.packages(c('remotes', 'rcmdcheck'))" -e "remotes::install_deps(dependencies = TRUE)" - - name: Check - run: Rscript -e "rcmdcheck::rcmdcheck(args = '--no-manual', error_on = 'error')" + - uses: actions/checkout@v2 + - name: Set up R ${{ matrix.r-version }} + uses: r-lib/actions/setup-r@ffe45a39586f073cc2e9af79c4ba563b657dc6e3 + with: + r-version: ${{ matrix.r-version }} + - name: Install dependencies + run: | + install.packages(c("remotes", "rcmdcheck")) + remotes::install_deps(dependencies = TRUE) + shell: Rscript {0} + - name: Check + run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error") + shell: Rscript {0} From fae2392dd2801d3741150afe43ac3df1bb5d57dc Mon Sep 17 00:00:00 2001 From: Jim Hester Date: Fri, 21 Aug 2020 09:24:31 -0400 Subject: [PATCH 03/13] Update ci/r.yml Co-authored-by: Andy McKay --- ci/r.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/r.yml b/ci/r.yml index cad232b..efc6587 100644 --- a/ci/r.yml +++ b/ci/r.yml @@ -10,9 +10,9 @@ name: R on: push: - branches: [ master ] + branches: [ $default-branch ] pull_request: - branches: [ master ] + branches: [ $default-branch ] jobs: build: From dc7a645261e96af0083db1398c7e0b912d1c6688 Mon Sep 17 00:00:00 2001 From: Andy McKay Date: Fri, 21 Aug 2020 08:25:55 -0700 Subject: [PATCH 04/13] Update ci/properties/r.properties.json --- ci/properties/r.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/properties/r.properties.json b/ci/properties/r.properties.json index a9c6c61..84ba0ec 100644 --- a/ci/properties/r.properties.json +++ b/ci/properties/r.properties.json @@ -1,6 +1,6 @@ { "name": "R package", "description": "Create and test an R package on multiple R versions.", - "iconName": "R", + "iconName": "r", "categories": ["R"] } From eb30c1ee372a59445172326d436cdab40283eb87 Mon Sep 17 00:00:00 2001 From: Jai Govindani Date: Sat, 11 Apr 2020 19:13:45 +0700 Subject: [PATCH 05/13] Add iOS Starter Workflow Signed-off-by: Jai Govindani --- ci/ios.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 ci/ios.yml diff --git a/ci/ios.yml b/ci/ios.yml new file mode 100644 index 0000000..d742656 --- /dev/null +++ b/ci/ios.yml @@ -0,0 +1,44 @@ +name: iOS Starter Workflow + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + name: Build and Test default scheme using any available iPhone simulator + runs-on: macos-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set Default Scheme + run: | + scheme_list=$(xcodebuild -list -json | tr -d "\n") + default=$(echo $scheme_list | ruby -e "require 'json'; puts JSON.parse(STDIN.gets)['project']['targets'][0]") + echo $default | cat >default + echo Using default scheme: $default + - name: Build + env: + scheme: ${{ 'default' }} + platform: ${{ 'iOS Simulator' }} + run: | + device=`instruments -s -devices | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'` + if [ $scheme = default ]; then scheme=$(cat default); fi + if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi + file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` + xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" + - name: Test + env: + scheme: ${{ 'default' }} + platform: ${{ 'iOS Simulator' }} + run: | + device=`instruments -s -devices | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'` + if [ $scheme = default ]; then scheme=$(cat default); fi + if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi + file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` + xcodebuild test-without-building -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" From 8086b89ce166e59ed0477cab6f2f174046b727be Mon Sep 17 00:00:00 2001 From: Jai Govindani Date: Sat, 11 Apr 2020 19:19:25 +0700 Subject: [PATCH 06/13] Set name of workflow to sentence case Signed-off-by: Jai Govindani --- ci/ios.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/ios.yml b/ci/ios.yml index d742656..f59381a 100644 --- a/ci/ios.yml +++ b/ci/ios.yml @@ -1,4 +1,4 @@ -name: iOS Starter Workflow +name: iOS starter workflow on: push: From f5834be4a7afe8759a5edd4c4e2fdfc0b5ed4110 Mon Sep 17 00:00:00 2001 From: Jai Govindani Date: Sat, 11 Apr 2020 19:19:37 +0700 Subject: [PATCH 07/13] Add ios.properties.json Signed-off-by: Jai Govindani --- ci/properties/ios.properties.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 ci/properties/ios.properties.json diff --git a/ci/properties/ios.properties.json b/ci/properties/ios.properties.json new file mode 100644 index 0000000..e9e54f9 --- /dev/null +++ b/ci/properties/ios.properties.json @@ -0,0 +1,6 @@ +{ + "name": "iOS", + "description": "Build and test an iOS application using xcodebuild and any available iPhone simulator.", + "iconName": "iOS", + "categories": ["iOS", "Xcode"] +} \ No newline at end of file From 044885a1323b0966c5c8597bd7069b6ac37a11f9 Mon Sep 17 00:00:00 2001 From: Jai Govindani Date: Wed, 17 Jun 2020 21:52:53 +0700 Subject: [PATCH 08/13] fix: add iOS icon Signed-off-by: Jai Govindani --- icons/ios.svg | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 icons/ios.svg diff --git a/icons/ios.svg b/icons/ios.svg new file mode 100644 index 0000000..7a7ffcf --- /dev/null +++ b/icons/ios.svg @@ -0,0 +1,6 @@ + + + + + + From a7d5e843be0226c47ec2917d45dbb6188a3b60df Mon Sep 17 00:00:00 2001 From: Jai Govindani Date: Wed, 17 Jun 2020 21:57:52 +0700 Subject: [PATCH 09/13] fix: add newline to end of file ios.properties.json Signed-off-by: Jai Govindani --- ci/properties/ios.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/properties/ios.properties.json b/ci/properties/ios.properties.json index e9e54f9..b367d3d 100644 --- a/ci/properties/ios.properties.json +++ b/ci/properties/ios.properties.json @@ -3,4 +3,4 @@ "description": "Build and test an iOS application using xcodebuild and any available iPhone simulator.", "iconName": "iOS", "categories": ["iOS", "Xcode"] -} \ No newline at end of file +} From 8b99b795cd6399bc314985fd3b838fe1da5f7713 Mon Sep 17 00:00:00 2001 From: Jai Govindani Date: Wed, 17 Jun 2020 21:59:17 +0700 Subject: [PATCH 10/13] fix: incorrect capitalization of iOS icon name Signed-off-by: Jai Govindani --- ci/properties/ios.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/properties/ios.properties.json b/ci/properties/ios.properties.json index b367d3d..16762c1 100644 --- a/ci/properties/ios.properties.json +++ b/ci/properties/ios.properties.json @@ -1,6 +1,6 @@ { "name": "iOS", "description": "Build and test an iOS application using xcodebuild and any available iPhone simulator.", - "iconName": "iOS", + "iconName": "ios", "categories": ["iOS", "Xcode"] } From 1d9faa86667e7c9bfde7ef6714c3b003e264df32 Mon Sep 17 00:00:00 2001 From: Jai Govindani Date: Sat, 22 Aug 2020 14:56:07 +0700 Subject: [PATCH 11/13] fix(triggers): use $default-branch instead of hard-coding Co-authored-by: Andy McKay --- ci/ios.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ci/ios.yml b/ci/ios.yml index f59381a..64b14a3 100644 --- a/ci/ios.yml +++ b/ci/ios.yml @@ -2,11 +2,9 @@ name: iOS starter workflow on: push: - branches: - - master + branches: [ $default-branch ] pull_request: - branches: - - master + branches: [ $default-branch ] jobs: build: From cd6c492b58d42c3297275a38d254a6989d06ce83 Mon Sep 17 00:00:00 2001 From: Jai Govindani Date: Sat, 22 Aug 2020 15:03:21 +0700 Subject: [PATCH 12/13] fix(icon): use xcode icon Signed-off-by: Jai Govindani --- ci/properties/ios.properties.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ci/properties/ios.properties.json b/ci/properties/ios.properties.json index 16762c1..0b3a9ed 100644 --- a/ci/properties/ios.properties.json +++ b/ci/properties/ios.properties.json @@ -1,6 +1,9 @@ { "name": "iOS", "description": "Build and test an iOS application using xcodebuild and any available iPhone simulator.", - "iconName": "ios", - "categories": ["iOS", "Xcode"] + "iconName": "xcode", + "categories": [ + "iOS", + "Xcode" + ] } From d344ceca325fa05a93fbcf2fb43cdf88959f7c50 Mon Sep 17 00:00:00 2001 From: Jai Govindani Date: Sat, 22 Aug 2020 15:07:17 +0700 Subject: [PATCH 13/13] fix(icon): remove ios icon Signed-off-by: Jai Govindani --- icons/ios.svg | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 icons/ios.svg diff --git a/icons/ios.svg b/icons/ios.svg deleted file mode 100644 index 7a7ffcf..0000000 --- a/icons/ios.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - -