Skip to content

Commit 87985f2

Browse files
committed
Add PR and issue templates. Split CI into CI (latest) and CI (master) jobs. Add CONTRIBUTING.md.
1 parent 6e81384 commit 87985f2

12 files changed

Lines changed: 199 additions & 47 deletions
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: fabasoad
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**Steps to Reproduce**
14+
1. Run '...'
15+
2. See error
16+
17+
**Expected behavior**
18+
A clear and concise description of what you expected to happen.
19+
20+
**Actual behavior**
21+
A clear and concise description of what is happening now.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
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.1]
29+
30+
**Additional context**
31+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: fabasoad
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/pull_request_template.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
## Pull request checklist
2+
3+
Please check if your PR fulfills the following requirements:
4+
- [ ] I have read the [CONTRIBUTING](https://github.com/fabasoad/pascal-action/CONTRIBUTING.md) doc.
5+
- [ ] Tests for the changes have been added (for bug fixes / features).
6+
- [ ] Docs have been reviewed and added / updated if needed (for bug fixes / features).
7+
- [ ] Functionality was run locally and any fixes were made for failures.
8+
9+
## Pull request type
10+
11+
<!-- Please do not submit updates to dependencies unless it fixes an issue. -->
12+
13+
<!-- Please try to limit your pull request to one type, submit multiple pull requests if needed. -->
14+
15+
Please check the type of change your PR introduces:
16+
- [ ] Bugfix
17+
- [ ] Feature
18+
- [ ] Code style update (formatting, renaming)
19+
- [ ] Refactoring (no functional changes, no api changes)
20+
- [ ] Build related changes
21+
- [ ] Documentation content changes
22+
- [ ] Other (please describe):
23+
24+
25+
## What is the current behavior?
26+
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->
27+
28+
Issue Number: N/A
29+
30+
31+
## What is the new behavior?
32+
<!-- Please describe the behavior or changes that are being added by this PR. -->
33+
34+
-
35+
-
36+
-
37+
38+
## Does this introduce a breaking change?
39+
40+
- [ ] Yes
41+
- [ ] No
42+
43+
<!-- If this introduces a breaking change, please describe the impact and migration path for existing applications below. -->
44+
45+
46+
## Other information
47+
48+
<!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. -->
49+
<!-- This document was adapted from the open-source [appium/appium](https://github.com/appium/appium/blob/master/.github/PULL_REQUEST_TEMPLATE.md) repository. -->

.github/workflows/ci-lastest.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: CI (latest)
3+
4+
on: push
5+
6+
jobs:
7+
functional_tests:
8+
name: Functional tests
9+
timeout-minutes: 5
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2.1.0
13+
with:
14+
ref: v1.0.1
15+
- uses: fabasoad/pascal-action@v1.0.1
16+
id: pascal
17+
with:
18+
path: ./HelloWorld.pas
19+
- name: Validate result
20+
run: |
21+
[[ "Hello World!" == "${{ steps.pascal.outputs.result }}" ]] || exit 1;

.github/workflows/ci-master.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: CI (master)
3+
4+
on: push
5+
6+
jobs:
7+
functional_tests:
8+
name: Functional tests
9+
timeout-minutes: 5
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2.1.0
13+
- uses: ./
14+
id: pascal
15+
with:
16+
path: ./HelloWorld.pas
17+
- name: Validate result
18+
run: |
19+
[[ "Hello World!" == "${{ steps.pascal.outputs.result }}" ]] || exit 1;

.github/workflows/dockerfile-lint.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Dockerfile Lint
23

34
on:
@@ -8,9 +9,10 @@ on:
89
jobs:
910
lint:
1011
name: Lint
11-
runs-on: ubuntu-18.04
12+
timeout-minutes: 3
13+
runs-on: ubuntu-latest
1214
steps:
13-
- uses: actions/checkout@v1
15+
- uses: actions/checkout@v2.1.0
1416
- uses: burdzwastaken/hadolint-action@master
1517
env:
1618
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pascal-lastest.yml

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

.github/workflows/pascal-master.yml

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

.github/workflows/shell-lint.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ on:
88
jobs:
99
lint:
1010
name: Lint
11-
runs-on: ubuntu-18.04
11+
timeout-minutes: 3
12+
runs-on: ubuntu-latest
1213
steps:
13-
- uses: actions/checkout@v1
14-
- uses: azohra/shell-linter@v0.2.0
15-
with:
16-
path: "*.sh"
14+
- uses: actions/checkout@v2.1.0
15+
- uses: bewuethr/shellcheck-action@v2.0.2

.github/workflows/yaml-lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ on:
55
push:
66
paths:
77
- '**.yml'
8-
- '!node_modules/**'
98

109
jobs:
1110
lint:
1211
name: Lint
13-
runs-on: ubuntu-18.04
12+
timeout-minutes: 3
13+
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v1
15+
- uses: actions/checkout@v2.1.0
1616
- uses: ibiqlik/action-yamllint@v1.0.0
1717
with:
1818
config_file: .yamllint.yml

0 commit comments

Comments
 (0)