generated from friendly-fhir/go-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
88 lines (80 loc) · 2.06 KB
/
presubmit.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Presubmit
on:
workflow_call:
pull_request:
branches:
- master
permissions:
contents: read
security-events: write
id-token: write
actions: read
jobs:
build-and-test:
name: Build and Test
uses: friendly-fhir/.github/.github/workflows/go-build-and-test.yaml@master
with:
packages: ./...
go-version-file: go.mod
short-test: true
permissions:
contents: read
id-token: write
license-manifest:
name: License Manifest
uses: friendly-fhir/.github/.github/workflows/go-license.yaml@master
with:
go-version-file: go.mod
packages: ./...
artifact-name: license-report
go-licenses-version: latest
license-file-name: license-report.csv
permissions:
contents: read
vulnerability-scanning:
name: Vulnerability Scanning
uses: friendly-fhir/.github/.github/workflows/go-vulnerability-scanning.yaml@master
with:
go-version-file: go.mod
packages: ./...
govulncheck-version: latest
permissions:
contents: read
security-events: write
go-lint:
name: Go Lint
uses: friendly-fhir/.github/.github/workflows/go-lint.yaml@master
with:
go-version-file: go.mod
permissions:
contents: read
markdown-lint:
name: Markdown Lint
uses: friendly-fhir/.github/.github/workflows/markdown-lint.yaml@master
with:
config: .markdownlint.jsonc
globs: |
README.md
docs/**/*.md
.github/**/*.md
permissions:
contents: read
# This check is a no-op that exists so that GitHub has a check to mark as
# required and successful.
check-success:
name: Check Success
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
needs:
- build-and-test
- license-manifest
- vulnerability-scanning
- go-lint
- markdown-lint
steps:
- name: Success
run: echo "All checks passed"
shell: bash
permissions:
contents: read