Skip to content

Commit

Permalink
test env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
f2calv committed Sep 22, 2024
1 parent 8c8b76a commit 5677d8a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 7 deletions.
38 changes: 32 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,36 @@ jobs:
lint:
uses: f2calv/gha-workflows/.github/workflows/lint.yml@v1

ci:
uses: f2calv/gha-workflows/.github/workflows/dotnet-publish-nuget.yml@v1
versioning:
uses: f2calv/gha-workflows/.github/workflows/gha-release-versioning.yml@v1
with:
configuration: ${{ github.event.inputs.configuration }}
push-preview: ${{ github.event.inputs.push-preview }}
secrets:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
tag-prefix: ''
tag-and-release: false

build:
runs-on: ubuntu-latest
needs: [versioning]
steps:
- uses: f2calv/gha-dotnet-nuget@v2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
configuration: ${{ inputs.configuration }}
push-preview: ${{ inputs.push-preview }}
version: ${{ needs.versioning.outputs.version }}
env:
CasCap__GooglePhotosOptions__User: ${{ secrets.GOOGLE_PHOTOS_EMAIL }}
CasCap__GooglePhotosOptions__ClientId: ${{ secrets.GOOGLE_PHOTOS_CLIENTID }}
CasCap__GooglePhotosOptions__ClientSecret: ${{ secrets.GOOGLE_PHOTOS_SECRET }}

release:
needs: [versioning, build]
if: needs.versioning.outputs.release-exists == 'false'
&& (github.ref == format('refs/heads/{0}', github.event.repository.default_branch) || inputs.push-preview == 'true')
uses: f2calv/gha-workflows/.github/workflows/gha-release-versioning.yml@v1
permissions:
contents: write
with:
semVer: ${{ needs.versioning.outputs.version }}
tag-prefix: ''
move-major-tag: false
3 changes: 2 additions & 1 deletion src/CasCap.Apis.GooglePhotos.Tests/Tests/Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ public class Tests : TestBase
{
public Tests(ITestOutputHelper output) : base(output) { }

[SkipIfCIBuildFact]
//[SkipIfCIBuildFact]
[Fact]
public async Task LoginTest()
{
var loginResult = await _googlePhotosSvc.LoginAsync();
Expand Down

0 comments on commit 5677d8a

Please sign in to comment.