Skip to content

Commit

Permalink
Split build job into build-and-test and publish jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
seclerp committed Jan 17, 2025
1 parent d9359b6 commit cf53e87
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Build and Test
name: Build, Test and Publish

on:
- push
- pull_request

jobs:
build:
bunld-and-test:
runs-on: ubuntu-latest
steps:
- name: 📝 Fetch Sources
Expand All @@ -18,10 +18,17 @@ jobs:
run: dotnet restore
- name: 🏗 Build for tests
run: dotnet build --no-restore --configuration Debug
- name: 📝 Test ChromeProtocol.Runtime
- name: 📝 Test Microsoft.Artifacts.Authentication
run: dotnet test --no-build --configuration Debug --verbosity normal src/Authentication.Tests
- name: 📝 Test ChromeProtocol.Tools
- name: 📝 Test CredentialProvider.Microsoft
run: dotnet test --no-build --configuration Debug --verbosity normal CredentialProvider.Microsoft.Tests

publish:
needs: build-and-test
runs-on: ubuntu-latest
steps:
- name: 📝 Fetch Sources
uses: actions/checkout@v3
- name: 🏗 Build & publish for release
run: ./scripts/build.sh
- name: 📦 Pack
Expand Down

0 comments on commit cf53e87

Please sign in to comment.