Skip to content

Commit

Permalink
Simplify GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
urumo committed Oct 15, 2024
1 parent dae68f2 commit 75b17f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
name: Api

on:
workflow_run:
workflows:
- Tests
types:
- completed
branches:
- master
push:
branches: [ "master" ]
paths:
Expand All @@ -26,7 +19,10 @@ on:
- 'src/Argon.Api.Common/**'

jobs:
qa:
uses: ./.github/workflows/tests.yml
build:
needs: [ qa ]
# if: github.ref == 'refs/heads/master'
runs-on: ARM64
steps:
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
name: Tests
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

on: [ workflow_call ]
jobs:
qa:
runs-on: ARM64
Expand All @@ -19,6 +14,4 @@ jobs:
- name: Build
run: dotnet build --no-restore --verbosity normal
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Fail test
run: exit 1
run: dotnet test --no-build --verbosity normal

0 comments on commit 75b17f6

Please sign in to comment.