From 961e644cd00bb23e8f4c6ebd86b300b6a9826276 Mon Sep 17 00:00:00 2001 From: Andre Paraense Date: Fri, 17 Jan 2020 12:23:39 +0000 Subject: [PATCH 1/7] Slack integration --- .github/workflows/cd.yml | 7 ++++++- .github/workflows/ci.yml | 5 +++++ pubspec.yaml | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 7d24319..ae16ec3 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -10,4 +10,9 @@ jobs: steps: - uses: actions/checkout@v1 - uses: subosito/flutter-action@v1.1.1 - - run: flutter pub publish --dry-run \ No newline at end of file + - run: flutter pub publish --dry-run + - uses: pioug/le-slack-message@v1.0.0 + with: + ACTION_NAME: CD - Publish + JOB: ${{ toJson(job) }} + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d68913e..17bc54d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,3 +18,8 @@ jobs: with: token: ${{secrets.CODECOV_TOKEN}} file: ./coverage/lcov.info + - uses: pioug/le-slack-message@v1.0.0 + with: + ACTION_NAME: CI - Build and Test + JOB: ${{ toJson(job) }} + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} diff --git a/pubspec.yaml b/pubspec.yaml index 48583e7..9e9f73d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: launchdarkly_flutter description: A LaunchDarkly Flutter SDK -version: 0.0.1 +version: 0.0.2 homepage: https://github.com/andre-paraense/launchdarkly_flutter issue_tracker: https://github.com/andre-paraense/launchdarkly_flutter/issues From ba7f87d7b50a4b5ad4991fb69cb6ec48770c986b Mon Sep 17 00:00:00 2001 From: Andre Paraense Date: Fri, 17 Jan 2020 12:28:03 +0000 Subject: [PATCH 2/7] Correcting identation --- .github/workflows/cd.yml | 10 +++++----- .github/workflows/ci.yml | 34 +++++++++++++++++----------------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index ae16ec3..34f6e26 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -11,8 +11,8 @@ jobs: - uses: actions/checkout@v1 - uses: subosito/flutter-action@v1.1.1 - run: flutter pub publish --dry-run - - uses: pioug/le-slack-message@v1.0.0 - with: - ACTION_NAME: CD - Publish - JOB: ${{ toJson(job) }} - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file + - uses: pioug/le-slack-message@v1.0.0 + with: + ACTION_NAME: CD - Publish + JOB: ${{toJson(job)}} + SLACK_WEBHOOK_URL: ${{secrets.SLACK_WEBHOOK_URL}} \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 17bc54d..564bc50 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,20 +6,20 @@ jobs: build-and-test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions/setup-java@v1 - with: - java-version: '12.x' - - uses: subosito/flutter-action@v1.1.1 - - run: flutter packages get - - run: flutter analyze --no-pub - - run: flutter test --coverage - - uses: codecov/codecov-action@v1.0.5 - with: - token: ${{secrets.CODECOV_TOKEN}} - file: ./coverage/lcov.info - - uses: pioug/le-slack-message@v1.0.0 - with: - ACTION_NAME: CI - Build and Test - JOB: ${{ toJson(job) }} - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + - uses: actions/checkout@v1 + - uses: actions/setup-java@v1 + with: + java-version: '12.x' + - uses: subosito/flutter-action@v1.1.1 + - run: flutter packages get + - run: flutter analyze --no-pub + - run: flutter test --coverage + - uses: codecov/codecov-action@v1.0.5 + with: + token: ${{secrets.CODECOV_TOKEN}} + file: ./coverage/lcov.info + - uses: pioug/le-slack-message@v1.0.0 + with: + ACTION_NAME: CI - Build and Test + JOB: ${{toJson(job)}} + SLACK_WEBHOOK_URL: ${{secrets.SLACK_WEBHOOK_URL}} From da444d40d5c8e503a6b115f64fb22003474adfad Mon Sep 17 00:00:00 2001 From: Andre Paraense Date: Fri, 17 Jan 2020 12:30:02 +0000 Subject: [PATCH 3/7] Correcting identation --- .github/workflows/cd.yml | 8 ++++---- .github/workflows/ci.yml | 18 +++++++++--------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 34f6e26..037a575 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -12,7 +12,7 @@ jobs: - uses: subosito/flutter-action@v1.1.1 - run: flutter pub publish --dry-run - uses: pioug/le-slack-message@v1.0.0 - with: - ACTION_NAME: CD - Publish - JOB: ${{toJson(job)}} - SLACK_WEBHOOK_URL: ${{secrets.SLACK_WEBHOOK_URL}} \ No newline at end of file + with: + ACTION_NAME: CD - Publish + JOB: ${{toJson(job)}} + SLACK_WEBHOOK_URL: ${{secrets.SLACK_WEBHOOK_URL}} \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 564bc50..622c37d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,18 +8,18 @@ jobs: steps: - uses: actions/checkout@v1 - uses: actions/setup-java@v1 - with: - java-version: '12.x' + with: + java-version: '12.x' - uses: subosito/flutter-action@v1.1.1 - run: flutter packages get - run: flutter analyze --no-pub - run: flutter test --coverage - uses: codecov/codecov-action@v1.0.5 - with: - token: ${{secrets.CODECOV_TOKEN}} - file: ./coverage/lcov.info + with: + token: ${{secrets.CODECOV_TOKEN}} + file: ./coverage/lcov.info - uses: pioug/le-slack-message@v1.0.0 - with: - ACTION_NAME: CI - Build and Test - JOB: ${{toJson(job)}} - SLACK_WEBHOOK_URL: ${{secrets.SLACK_WEBHOOK_URL}} + with: + ACTION_NAME: CI - Build and Test + JOB: ${{toJson(job)}} + SLACK_WEBHOOK_URL: ${{secrets.SLACK_WEBHOOK_URL}} From 98d25679560ed448ab3eb7caafe08a307282cf68 Mon Sep 17 00:00:00 2001 From: Andre Paraense Date: Fri, 17 Jan 2020 13:46:48 +0000 Subject: [PATCH 4/7] Slack integration --- .github/workflows/cd.yml | 6 ++---- .github/workflows/ci.yml | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 037a575..9c565c6 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -11,8 +11,6 @@ jobs: - uses: actions/checkout@v1 - uses: subosito/flutter-action@v1.1.1 - run: flutter pub publish --dry-run - - uses: pioug/le-slack-message@v1.0.0 + - uses: actions/slack-notifier-action@v1.0.2 with: - ACTION_NAME: CD - Publish - JOB: ${{toJson(job)}} - SLACK_WEBHOOK_URL: ${{secrets.SLACK_WEBHOOK_URL}} \ No newline at end of file + webhook_url: ${{secrets.SLACK_WEBHOOK_URL}} \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 622c37d..f5e657d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,8 +18,6 @@ jobs: with: token: ${{secrets.CODECOV_TOKEN}} file: ./coverage/lcov.info - - uses: pioug/le-slack-message@v1.0.0 + - uses: actions/slack-notifier-action@v1.0.2 with: - ACTION_NAME: CI - Build and Test - JOB: ${{toJson(job)}} - SLACK_WEBHOOK_URL: ${{secrets.SLACK_WEBHOOK_URL}} + webhook_url: ${{secrets.SLACK_WEBHOOK_URL}} From a6bc5c7cf6a2e85f856834dacf19cb0d49c414fc Mon Sep 17 00:00:00 2001 From: Andre Paraense Date: Fri, 17 Jan 2020 13:49:34 +0000 Subject: [PATCH 5/7] Slack integration --- .github/workflows/cd.yml | 2 +- .github/workflows/ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 9c565c6..be5203a 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -11,6 +11,6 @@ jobs: - uses: actions/checkout@v1 - uses: subosito/flutter-action@v1.1.1 - run: flutter pub publish --dry-run - - uses: actions/slack-notifier-action@v1.0.2 + - uses: actions/slack-notifier-action@v1 with: webhook_url: ${{secrets.SLACK_WEBHOOK_URL}} \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f5e657d..22d5c5c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,6 @@ jobs: with: token: ${{secrets.CODECOV_TOKEN}} file: ./coverage/lcov.info - - uses: actions/slack-notifier-action@v1.0.2 + - uses: actions/slack-notifier-action@v1 with: webhook_url: ${{secrets.SLACK_WEBHOOK_URL}} From a4d868c31417a22745f6ee158474909524dca11d Mon Sep 17 00:00:00 2001 From: Andre Paraense Date: Fri, 17 Jan 2020 13:57:34 +0000 Subject: [PATCH 6/7] Slack integration --- .github/workflows/cd.yml | 6 ++++-- .github/workflows/ci.yml | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index be5203a..037a575 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -11,6 +11,8 @@ jobs: - uses: actions/checkout@v1 - uses: subosito/flutter-action@v1.1.1 - run: flutter pub publish --dry-run - - uses: actions/slack-notifier-action@v1 + - uses: pioug/le-slack-message@v1.0.0 with: - webhook_url: ${{secrets.SLACK_WEBHOOK_URL}} \ No newline at end of file + ACTION_NAME: CD - Publish + JOB: ${{toJson(job)}} + SLACK_WEBHOOK_URL: ${{secrets.SLACK_WEBHOOK_URL}} \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 22d5c5c..622c37d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,8 @@ jobs: with: token: ${{secrets.CODECOV_TOKEN}} file: ./coverage/lcov.info - - uses: actions/slack-notifier-action@v1 + - uses: pioug/le-slack-message@v1.0.0 with: - webhook_url: ${{secrets.SLACK_WEBHOOK_URL}} + ACTION_NAME: CI - Build and Test + JOB: ${{toJson(job)}} + SLACK_WEBHOOK_URL: ${{secrets.SLACK_WEBHOOK_URL}} From 804de3ed9d77492957cfadbd41924237b2c92e6c Mon Sep 17 00:00:00 2001 From: Andre Paraense Date: Fri, 17 Jan 2020 14:02:05 +0000 Subject: [PATCH 7/7] Ci on pushes - no pull requests --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 622c37d..6072fec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,6 @@ name: CI -on: [push, pull_request] +on: [push] jobs: build-and-test: