Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mburumaxwell committed Sep 30, 2023
1 parent f9d9aa5 commit 9825959
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 14 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
23 changes: 16 additions & 7 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -54,23 +66,20 @@ 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"
- name: Pack
run: >
dotnet pack
--configuration $buildConfiguration
--configuration Release
--no-build
--verbosity normal
--output $GITHUB_WORKSPACE/drop
Expand Down
25 changes: 18 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -52,23 +66,20 @@ 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"
- name: Pack
run: >
dotnet pack
--configuration $buildConfiguration
--configuration Release
--no-build
--verbosity normal
--output $GITHUB_WORKSPACE/drop
Expand Down

0 comments on commit 9825959

Please sign in to comment.