From 941b3de36e8c2c05088a7e0de45894b5cc537849 Mon Sep 17 00:00:00 2001 From: khoi Date: Thu, 29 Aug 2019 14:21:24 +0700 Subject: [PATCH 1/3] Add Swift starter template --- ci/properties/swift.properties.json | 6 ++++++ ci/swift.yml | 15 +++++++++++++++ icons/swift.svg | 10 ++++++++++ 3 files changed, 31 insertions(+) create mode 100644 ci/properties/swift.properties.json create mode 100644 ci/swift.yml create mode 100644 icons/swift.svg diff --git a/ci/properties/swift.properties.json b/ci/properties/swift.properties.json new file mode 100644 index 0000000..9efd645 --- /dev/null +++ b/ci/properties/swift.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Swift", + "description": "Build and test a Swift Package.", + "iconName": "swift", + "categories": ["Swift"] +} diff --git a/ci/swift.yml b/ci/swift.yml new file mode 100644 index 0000000..2e76632 --- /dev/null +++ b/ci/swift.yml @@ -0,0 +1,15 @@ +name: Swift + +on: [push] + +jobs: + build: + + runs-on: macOS-latest + + steps: + - uses: actions/checkout@v1 + - name: Build + run: swift build -v + - name: Run tests + run: swift test -v diff --git a/icons/swift.svg b/icons/swift.svg new file mode 100644 index 0000000..69df9cd --- /dev/null +++ b/icons/swift.svg @@ -0,0 +1,10 @@ + + + + + + + + + + From 65acb4a19255e919a150567308d9eab9af29ed84 Mon Sep 17 00:00:00 2001 From: Bruno Michel Date: Tue, 10 Sep 2019 08:48:48 +0200 Subject: [PATCH 2/3] Update go version to 1.13 --- ci/go.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/go.yml b/ci/go.yml index 3ed607b..169022b 100644 --- a/ci/go.yml +++ b/ci/go.yml @@ -7,10 +7,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: Set up Go 1.12 + - name: Set up Go 1.13 uses: actions/setup-go@v1 with: - go-version: 1.12 + go-version: 1.13 id: go - name: Check out code into the Go module directory From 117a695161b004b9dcad274bd814151aa31464a7 Mon Sep 17 00:00:00 2001 From: Arthur Baars Date: Fri, 20 Sep 2019 12:41:36 -0700 Subject: [PATCH 3/3] maven.yml: add `-B` to the maven command line Add the `-B` (batch mode) to the `mvn` command line. In interactive mode maven prints many lines of download progress output filling the console output with thousands of useless lines. Ideally the github-actions console would interpret `\r' as carriage return (go back to the beginning of the current line and overwrite it). As long as that is not the case using `-B` is a good workaround. --- ci/maven.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/maven.yml b/ci/maven.yml index e50300b..dbc347f 100644 --- a/ci/maven.yml +++ b/ci/maven.yml @@ -14,4 +14,4 @@ jobs: with: java-version: 1.8 - name: Build with Maven - run: mvn package --file pom.xml + run: mvn -B package --file pom.xml