Skip to content

Commit ee81f2d

Browse files
authored
Add "Super Linter" CI pipeline (#3)
* Add Super Lint GitHub Action * Fix MD Lint errors * Add 'Create release' pipeline
1 parent a071a30 commit ee81f2d

11 files changed

Lines changed: 104 additions & 76 deletions

File tree

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,32 @@ assignees: fabasoad
77

88
---
99

10-
**Describe the bug**
10+
## Describe the bug
11+
1112
A clear and concise description of what the bug is.
1213

13-
**Steps to Reproduce**
14+
## Steps to Reproduce
15+
1416
1. Run '...'
1517
2. See error
1618

17-
**Expected behavior**
19+
## Expected behavior
20+
1821
A clear and concise description of what you expected to happen.
1922

20-
**Actual behavior**
23+
## Actual behavior
24+
2125
A clear and concise description of what is happening now.
2226

23-
**Screenshots**
27+
## Screenshots
28+
2429
If applicable, add screenshots to help explain your problem.
2530

26-
**Technical information (please complete the following information):**
27-
- OS: [e.g. Windows 10 Enterprise v.1909 (OS Build 18363.720)]
28-
- `pascal-action` version [e.g. 1.0.2]
31+
## Technical information (please complete the following information)
32+
33+
- OS: [e.g. Windows 10 Enterprise v.1909 (OS Build 18363.720)]
34+
- `pascal-action` version [e.g. 1.0.2]
35+
36+
## Additional context
2937

30-
**Additional context**
3138
Add any other context about the problem here.

.github/pull_request_template.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
Closes #<IssueNumber>
1+
<!-- markdownlint-disable-file MD041 -->
2+
3+
Closes #{IssueNumber}
24

35
## Pull request checklist
46

@@ -11,9 +13,9 @@ Please check if your PR fulfills the following requirements:
1113

1214
## Pull request type
1315

14-
<!-- Please do not submit updates to dependencies unless it fixes an issue. -->
16+
<!-- Please do not submit updates to dependencies unless it fixes an issue. -->
1517

16-
<!-- Please try to limit your pull request to one type, submit multiple pull requests if needed. -->
18+
<!-- Please try to limit your pull request to one type, submit multiple pull requests if needed. -->
1719

1820
Please check the type of change your PR introduces:
1921

@@ -23,7 +25,7 @@ Please check the type of change your PR introduces:
2325
- [ ] Refactoring (no functional changes, no api changes)
2426
- [ ] Build related changes
2527
- [ ] Documentation content changes
26-
- [ ] Other (please describe):
28+
- [ ] Other (please describe):
2729

2830
## What is the current behavior?
2931
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
name: Create release
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
create_release:
11+
name: Release
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2.3.4
15+
with:
16+
fetch-depth: 0
17+
ref: ${{ github.ref }}
18+
- name: Get commits since last release
19+
id: changes
20+
uses: simbo/changes-since-last-release-action@v1
21+
- name: Get latest version
22+
id: substring
23+
run: |
24+
ver=$(echo "${{ steps.changes.outputs.last-tag }}" | cut -c2-)
25+
echo '::set-output name=version::'$ver
26+
- name: Increase version
27+
id: semver
28+
uses: matt-FFFFFF/simple-semver@v0.1.0
29+
with:
30+
semver-input: ${{ steps.substring.outputs.version }}
31+
increment: p
32+
- name: Create release
33+
id: create_release
34+
uses: actions/create-release@v1
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
with:
38+
tag_name: v${{ steps.semver.outputs.semver }}
39+
release_name: v${{ steps.semver.outputs.semver }}
40+
body: |
41+
# Changes
42+
43+
${{ steps.changes.outputs.log }}
44+
draft: false
45+
prerelease: false

.github/workflows/dockerfile-lint.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/linter.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Lint
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
- 'bugfix/**'
9+
- 'feature/**'
10+
11+
jobs:
12+
build:
13+
name: Lint
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout Code
17+
uses: actions/checkout@v2.3.4
18+
with:
19+
fetch-depth: 0
20+
- name: Lint Code Base
21+
uses: github/super-linter@v3.14.4
22+
env:
23+
VALIDATE_ALL_CODEBASE: true
24+
DEFAULT_BRANCH: main
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/security-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ jobs:
2222
run: |
2323
docker build -t ${{ github.repository }}:${{ github.sha }} .
2424
snyk auth ${{ secrets.SNYK_API_TOKEN }}
25-
snyk test --docker ${{ github.repository }}:${{ github.sha }} --file=Dockerfile
25+
snyk test --docker ${{ github.repository }}:${{ github.sha }} --file=Dockerfile --exclude-base-image-vulns

.github/workflows/shell-lint.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/yaml-lint.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
2+
"editor.codeActionsOnSave": {
3+
"source.fixAll": true,
4+
"fixAll.eslint": true
5+
},
26
"cSpell.words": [
37
"HADOLINT",
48
"appium",
@@ -7,6 +11,10 @@
711
"ibiqlik",
812
"issuehunt",
913
"liberapay",
14+
"markdownlint",
15+
"semver",
16+
"simbo",
17+
"vulns",
1018
"yamllint"
1119
]
1220
}

.yamllint.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)