Skip to content

Commit 11f624f

Browse files
committed
Initial commit
1 parent 5d47b93 commit 11f624f

13 files changed

Lines changed: 157 additions & 0 deletions

.github/FUNDING.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
open_collective: fabasoad
3+
ko_fi: fabasoad
4+
liberapay: fabasoad
5+
issuehunt: fabasoad
6+
custom: ['https://en.cryptobadges.io/donate/145HwyQAcv4vrzUumJhu7nWGAVBysX9jJH']
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Dockerfile Lint
2+
3+
on:
4+
push:
5+
paths:
6+
- 'Dockerfile'
7+
8+
jobs:
9+
lint:
10+
name: Lint
11+
runs-on: ubuntu-18.04
12+
steps:
13+
- uses: actions/checkout@v1
14+
- uses: burdzwastaken/hadolint-action@master
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
HADOLINT_ACTION_DOCKERFILE_FOLDER: ./
18+
HADOLINT_ACTION_COMMENT: false

.github/workflows/pascal.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Pascal
3+
4+
on: push
5+
6+
jobs:
7+
pascal:
8+
name: Run Pascal script
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Run fabasoad/pascal-action@v1.0.0
13+
uses: ./
14+
id: pascal
15+
with:
16+
path: './HelloWorld.pas'
17+
- name: Print result
18+
run: echo "${{ steps.pascal.outputs.result }}"

.github/workflows/shell-lint.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Shell Lint
2+
3+
on:
4+
push:
5+
paths:
6+
- '**.sh'
7+
8+
jobs:
9+
lint:
10+
name: Lint
11+
runs-on: ubuntu-18.04
12+
steps:
13+
- uses: actions/checkout@v1
14+
- uses: azohra/shell-linter@v0.2.0
15+
with:
16+
path: "*.sh"

.github/workflows/yaml-lint.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: YAML Lint
3+
4+
on:
5+
push:
6+
paths:
7+
- '**.yml'
8+
- '!node_modules/**'
9+
10+
jobs:
11+
lint:
12+
name: Lint
13+
runs-on: ubuntu-18.04
14+
steps:
15+
- uses: actions/checkout@v1
16+
- uses: ibiqlik/action-yamllint@v1.0.0
17+
with:
18+
config_file: .yamllint.yml
19+
strict: false
20+
file_or_dir: .yamllint.yml action.yml .github/**.yml

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.vscode/

.yamllint.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
extends: default
3+
4+
rules:
5+
line-length:
6+
max: 150
7+
level: warning

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM alpine:3.11.3
2+
3+
RUN apk update ;\
4+
apk add fp-compiler
5+
6+
COPY docker-entrypoint.sh /
7+
RUN chmod +x /docker-entrypoint.sh
8+
ENTRYPOINT [ "/docker-entrypoint.sh" ]

HelloWorld.pas

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
program HelloWorld;
2+
uses crt;
3+
4+
begin
5+
writeln('Hello, World!');
6+
end.

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Run Pascal script action
2+
![Dockerfile Lint](https://github.com/fabasoad/pascal-action/workflows/Dockerfile%20Lint/badge.svg) ![Shell Lint](https://github.com/fabasoad/pascal-action/workflows/Shell%20Lint/badge.svg) [GitHub release (latest SemVer including pre-releases)](https://img.shields.io/github/v/release/fabasoad/pascal-action?include_prereleases)
3+
4+
This action runs Pascal script.
5+
6+
## Inputs
7+
1. `path` - _[Required]_ Path to the script file.
8+
9+
## Outputs
10+
1. `result` - script output.
11+
12+
## Example usage
13+
14+
### Workflow configuration
15+
16+
```yaml
17+
name: Pascal
18+
19+
on: push
20+
21+
jobs:
22+
pascal:
23+
name: Run Pascal script
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v1
27+
- uses: fabasoad/pascal-action@v1.0.0
28+
id: pascal
29+
with:
30+
path: './HelloWorld.pas'
31+
- name: Print result
32+
run: echo "${{ steps.pascal.outputs.result }}"
33+
```
34+
35+
### Result
36+
![Result](https://raw.githubusercontent.com/fabasoad/pascal-action/master/screenshot.png)

0 commit comments

Comments
 (0)