Skip to content

Commit

Permalink
Add check step to ci (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangb authored Oct 18, 2023
1 parent f9749f8 commit d7c4d57
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 3 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/python-json.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,28 @@ jobs:
run: |
make lint
# https://github.com/marketplace/actions/alls-green
check: # This job does nothing and is only used for the branch protection
name: arrow-json Python Check
if: always()

outputs:
result: ${{ steps.all-green.outputs.result }}

needs:
- lint
- macos
- linux
runs-on: ubuntu-latest

steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
id: all-green
with:
jobs: ${{ toJSON(needs) }}

release:
name: Release
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,27 @@ jobs:
run: |
make lint
# https://github.com/marketplace/actions/alls-green
check: # This job does nothing and is only used for the branch protection
name: pgpq Python Check
if: always()

outputs:
result: ${{ steps.all-green.outputs.result }}

needs:
- lint
- macos
- linux
runs-on: ubuntu-latest

steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
id: all-green
with:
jobs: ${{ toJSON(needs) }}

release:
name: Release
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
Expand Down
27 changes: 24 additions & 3 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ on: [push, pull_request]
name: Rust CI

jobs:
check:
name: Check
cargo_check:
name: Cargo Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -63,12 +63,33 @@ jobs:
with:
command: test

# https://github.com/marketplace/actions/alls-green
check: # This job does nothing and is only used for the branch protection
name: pgpq Rust Check
if: always()

outputs:
result: ${{ steps.all-green.outputs.result }}

needs:
- cargo_check
- fmt
- clippy
- test
runs-on: ubuntu-latest

steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
id: all-green
with:
jobs: ${{ toJSON(needs) }}

release:
name: Release
runs-on: ubuntu-latest
needs:
- check
- test
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit d7c4d57

Please sign in to comment.