Skip to content

Commit

Permalink
Move unit-tests into main workflow, use as "needs"
Browse files Browse the repository at this point in the history
- Moves unit-tests job into main workflow
- Now enables us to rely on unit-tests passing to proceed
  • Loading branch information
mitchnielsen committed Sep 5, 2024
1 parent 0ccd597 commit 38da3c1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 27 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,26 @@ name: Release
pull_request:
branches:
- main
push:
branches:
- main

permissions: {}

jobs:
unit-tests:
name: Unit tests
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@v2
- name: Build
run: make build
- name: Test
run: make test

build-and-upload-manifests:
needs: unit-tests
permissions:
Expand Down Expand Up @@ -66,6 +82,7 @@ jobs:
images: prefecthq/prefect-operator${{ github.event_name == 'pull_request' && '-dev' }}
tags: |
type=ref,event=pr
type=ref,event=branch
type=semver,pattern={{version}},event=tag
labels: |
org.opencontainers.image.title=prefect-operator
Expand Down
27 changes: 0 additions & 27 deletions .github/workflows/tests.yaml

This file was deleted.

0 comments on commit 38da3c1

Please sign in to comment.