ci: add merge_queue trigger for required workflows (#15847)

This commit is contained in:
Julien Robert
2023-04-14 15:54:48 +00:00
committed by GitHub
parent c4489d9785
commit d7c8353989
4 changed files with 24 additions and 4 deletions
+1
View File
@@ -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
+6 -1
View File
@@ -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"
+14 -3
View File
@@ -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
View File
@@ -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 }}"