ci: add merge_queue trigger for required workflows (#15847)
This commit is contained in:
parent
c4489d9785
commit
d7c8353989
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
@ -2,6 +2,7 @@ name: Build SimApp
|
||||
# This workflow is run on pushes to main & every Pull Requests where a .go, .mod, .sum have been changed
|
||||
on:
|
||||
pull_request:
|
||||
merge_group:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
7
.github/workflows/dependencies-review.yml
vendored
7
.github/workflows/dependencies-review.yml
vendored
@ -1,5 +1,7 @@
|
||||
name: "Dependency Review"
|
||||
on: pull_request
|
||||
on:
|
||||
pull_request:
|
||||
merge_group:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
@ -15,6 +17,9 @@ jobs:
|
||||
go-version: 1.20.3
|
||||
- name: "Dependency Review"
|
||||
uses: actions/dependency-review-action@v3
|
||||
with:
|
||||
base-ref: ${{ github.event.pull_request.base.sha || 'main' }}
|
||||
head-ref: ${{ github.event.pull_request.head.sha || github.ref }}
|
||||
- name: "Dependency audit"
|
||||
run: ./scripts/dep-assert.sh
|
||||
- name: "Go vulnerability check"
|
||||
|
||||
17
.github/workflows/lint.yml
vendored
17
.github/workflows/lint.yml
vendored
@ -5,10 +5,9 @@ on:
|
||||
- main
|
||||
- release/**
|
||||
pull_request:
|
||||
merge_group:
|
||||
permissions:
|
||||
contents: read
|
||||
# Optional: allow read access to pull request. Use with `only-new-issues` option.
|
||||
# pull-requests: read
|
||||
jobs:
|
||||
golangci:
|
||||
name: golangci-lint
|
||||
@ -18,4 +17,16 @@ jobs:
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: 1.20.3
|
||||
- run: make lint
|
||||
- uses: technote-space/get-diff-action@v6.1.2
|
||||
id: git_diff
|
||||
with:
|
||||
PATTERNS: |
|
||||
**/*.go
|
||||
go.mod
|
||||
go.sum
|
||||
**/go.mod
|
||||
**/go.sum
|
||||
- name: run linting
|
||||
if: env.GIT_DIFF
|
||||
run: |
|
||||
make lint
|
||||
|
||||
3
.github/workflows/test.yml
vendored
3
.github/workflows/test.yml
vendored
@ -1,6 +1,7 @@
|
||||
name: Tests / Code Coverage
|
||||
on:
|
||||
pull_request:
|
||||
merge_group:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
@ -64,6 +65,8 @@ jobs:
|
||||
go.sum
|
||||
**/go.mod
|
||||
**/go.sum
|
||||
**/Makefile
|
||||
Makefile
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: "${{ github.sha }}-${{ matrix.part }}"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user