mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Merge pull request #637 from gocsaf/api-break-action
Add semver breaking changes detection
This commit is contained in:
commit
12cde3aa3c
1 changed files with 26 additions and 1 deletions
27
.github/workflows/go.yml
vendored
27
.github/workflows/go.yml
vendored
|
|
@ -12,7 +12,8 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
|
|
@ -35,3 +36,27 @@ jobs:
|
||||||
|
|
||||||
- name: Tests
|
- name: Tests
|
||||||
run: go test -v ./...
|
run: go test -v ./...
|
||||||
|
|
||||||
|
run_modver:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build # Only run when build job was successful
|
||||||
|
if: ${{ github.event_name == 'pull_request' && success() }}
|
||||||
|
permissions:
|
||||||
|
contents: read # Modver needs to read the repo content
|
||||||
|
pull-requests: write # Modver needs to write comments/status on PRs
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # Modver needs full history for comparison
|
||||||
|
|
||||||
|
- name: Set up Go
|
||||||
|
uses: actions/setup-go@v4
|
||||||
|
with:
|
||||||
|
go-version: "stable"
|
||||||
|
|
||||||
|
- name: Modver
|
||||||
|
uses: bobg/modver@v2.5.0
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
pull_request_url: https://github.com/${{ github.repository }}/pull/${{ github.event.number }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue