From 98259593f12b509397aad91272e8a1d62ff25955 Mon Sep 17 00:00:00 2001 From: Maxwell Weru Date: Sat, 30 Sep 2023 07:48:01 +0300 Subject: [PATCH] Update workflows --- .github/workflows/pr.yml | 15 +++++++++++++++ .github/workflows/preview.yml | 23 ++++++++++++++++------- .github/workflows/release.yml | 25 ++++++++++++++++++------- 3 files changed, 49 insertions(+), 14 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index ab80483..5a50741 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -11,6 +11,21 @@ on: - CHANGELOG.md - docs/** +env: + APNSTEST__BUNDLEID: ${{ vars.APNSTEST__BUNDLEID }} + APNSTEST__DEVICETOKEN: ${{ vars.APNSTEST__DEVICETOKEN }} + APNSTEST__ENVIRONMENT: ${{ vars.APNSTEST__ENVIRONMENT }} + APNSTEST__KEYID: ${{ vars.APNSTEST__KEYID }} + APNSTEST__PRIVATEKEY: ${{ vars.APNSTEST__PRIVATEKEY }} + APNSTEST__TEAMID: ${{ vars.APNSTEST__TEAMID }} + FCMLEGACYTEST__KEY: ${{ vars.FCMLEGACYTEST__KEY }} + FCMLEGACYTEST__REGISTRATIONID: ${{ vars.FCMLEGACYTEST__REGISTRATIONID }} + FIREBASETEST__CLIENTEMAIL: ${{ vars.FIREBASETEST__CLIENTEMAIL }} + FIREBASETEST__DEVICETOKEN: ${{ vars.FIREBASETEST__DEVICETOKEN }} + FIREBASETEST__PRIVATEKEY: ${{ vars.FIREBASETEST__PRIVATEKEY }} + FIREBASETEST__PROJECTID: ${{ vars.FIREBASETEST__PROJECTID }} + FIREBASETEST__TOKENURI: ${{ vars.FIREBASETEST__TOKENURI }} + jobs: Build: runs-on: ubuntu-latest diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 4b73edd..f9ae428 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -17,7 +17,19 @@ on: default: 'false' env: - buildConfiguration: 'Release' + APNSTEST__BUNDLEID: ${{ vars.APNSTEST__BUNDLEID }} + APNSTEST__DEVICETOKEN: ${{ vars.APNSTEST__DEVICETOKEN }} + APNSTEST__ENVIRONMENT: ${{ vars.APNSTEST__ENVIRONMENT }} + APNSTEST__KEYID: ${{ vars.APNSTEST__KEYID }} + APNSTEST__PRIVATEKEY: ${{ vars.APNSTEST__PRIVATEKEY }} + APNSTEST__TEAMID: ${{ vars.APNSTEST__TEAMID }} + FCMLEGACYTEST__KEY: ${{ vars.FCMLEGACYTEST__KEY }} + FCMLEGACYTEST__REGISTRATIONID: ${{ vars.FCMLEGACYTEST__REGISTRATIONID }} + FIREBASETEST__CLIENTEMAIL: ${{ vars.FIREBASETEST__CLIENTEMAIL }} + FIREBASETEST__DEVICETOKEN: ${{ vars.FIREBASETEST__DEVICETOKEN }} + FIREBASETEST__PRIVATEKEY: ${{ vars.FIREBASETEST__PRIVATEKEY }} + FIREBASETEST__PROJECTID: ${{ vars.FIREBASETEST__PROJECTID }} + FIREBASETEST__TOKENURI: ${{ vars.FIREBASETEST__TOKENURI }} DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 jobs: @@ -54,15 +66,12 @@ jobs: run: dotnet restore - name: Build - run: > - dotnet build - --configuration $buildConfiguration - --no-restore + run: dotnet build--configuration Release --no-restore - name: Test run: > dotnet test - --configuration $buildConfiguration + --configuration Release --no-build --verbosity normal --collect "Code coverage" @@ -70,7 +79,7 @@ jobs: - name: Pack run: > dotnet pack - --configuration $buildConfiguration + --configuration Release --no-build --verbosity normal --output $GITHUB_WORKSPACE/drop diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 72c530d..32075a8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,11 +12,25 @@ on: - CHANGELOG.md - docs/** +env: + APNSTEST__BUNDLEID: ${{ vars.APNSTEST__BUNDLEID }} + APNSTEST__DEVICETOKEN: ${{ vars.APNSTEST__DEVICETOKEN }} + APNSTEST__ENVIRONMENT: ${{ vars.APNSTEST__ENVIRONMENT }} + APNSTEST__KEYID: ${{ vars.APNSTEST__KEYID }} + APNSTEST__PRIVATEKEY: ${{ vars.APNSTEST__PRIVATEKEY }} + APNSTEST__TEAMID: ${{ vars.APNSTEST__TEAMID }} + FCMLEGACYTEST__KEY: ${{ vars.FCMLEGACYTEST__KEY }} + FCMLEGACYTEST__REGISTRATIONID: ${{ vars.FCMLEGACYTEST__REGISTRATIONID }} + FIREBASETEST__CLIENTEMAIL: ${{ vars.FIREBASETEST__CLIENTEMAIL }} + FIREBASETEST__DEVICETOKEN: ${{ vars.FIREBASETEST__DEVICETOKEN }} + FIREBASETEST__PRIVATEKEY: ${{ vars.FIREBASETEST__PRIVATEKEY }} + FIREBASETEST__PROJECTID: ${{ vars.FIREBASETEST__PROJECTID }} + FIREBASETEST__TOKENURI: ${{ vars.FIREBASETEST__TOKENURI }} + jobs: Build: runs-on: ubuntu-latest env: - buildConfiguration: 'Release' DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 steps: @@ -52,15 +66,12 @@ jobs: run: dotnet restore - name: Build - run: > - dotnet build - --configuration $buildConfiguration - --no-restore + run: dotnet build --configuration Release --no-restore - name: Test run: > dotnet test - --configuration $buildConfiguration + --configuration Release --no-build --verbosity normal --collect "Code coverage" @@ -68,7 +79,7 @@ jobs: - name: Pack run: > dotnet pack - --configuration $buildConfiguration + --configuration Release --no-build --verbosity normal --output $GITHUB_WORKSPACE/drop