Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Pull Request
name: Build and Tests

on:
pull_request:
branches: ["main"]

env:
CARGO_TERM_COLOR: always
workflow_call:
inputs:
ref:
required: false
type: string
description: "The branch, tag or SHA to checkout. Defaults to the current SHA."

jobs:
build:
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Pull Request

on:
pull_request:
branches:
- main

env:
CARGO_TERM_COLOR: always

jobs:
test:
uses: ./.github/workflows/build-and-tests.yaml
with:
ref: ${{ github.event.pull_request.head.sha }}
8 changes: 5 additions & 3 deletions .github/workflows/release-plz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ on:
- main

jobs:
test:
uses: ./.github/workflows/test.yaml

# Release unpublished packages.
release-plz-release:
name: Release-plz release
needs: test
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'thiagodejesus' }}
permissions:
Expand All @@ -33,9 +35,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

# Create a PR with the new versions and changelog, preparing the next release.
release-plz-pr:
name: Release-plz PR
needs: test
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'thiagodejesus' }}
permissions:
Expand All @@ -57,4 +59,4 @@ jobs:
command: release-pr
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
Loading