Skip to content

Commit

Permalink
Run test when creating release, not when publishing
Browse files Browse the repository at this point in the history
Avoid running the tests several times on the same tag
  • Loading branch information
Alef-Burzmali committed Oct 27, 2024
1 parent f26d74a commit 638427f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,8 @@ permissions:
contents: read

jobs:
check-linting:
uses: ./.github/workflows/check-linting.yml

run-tests:
uses: ./.github/workflows/run-tests.yml

build:
name: Check and build project
needs: [check-linting, run-tests]
name: Build project and check package
runs-on: "ubuntu-latest"

steps:
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,21 @@ permissions:
contents: write

jobs:
check-documentation:
uses: ./.github/workflows/check-documentation.yml

check-linting:
uses: ./.github/workflows/check-linting.yml

run-tests:
uses: ./.github/workflows/run-tests.yml

build-package:
uses: ./.github/workflows/build-package.yml

autorelease:
name: Create Draft Release
needs: [build-package]
needs: [check-documentation, check-linting, run-tests, build-package]
runs-on: "ubuntu-latest"

steps:
Expand Down

0 comments on commit 638427f

Please sign in to comment.