File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22name : Functional tests (Local)
33
44on : # yamllint disable-line rule:truthy
5+ pull_request : {}
56 push :
67 branches :
78 - " main"
8- pull_request :
9+
10+ defaults :
11+ run :
12+ shell : sh
913
1014jobs :
11- functional_tests :
15+ functional-tests :
1216 name : Functional tests
1317 timeout-minutes : 5
1418 runs-on : ubuntu-latest
1519 steps :
16- - uses : actions/checkout@v4
20+ - name : Checkout ${{ github.repository }}
21+ uses : actions/checkout@v4
1722 - uses : ./
1823 id : pascal
1924 with :
2025 path : ./HelloWorld.pas
2126 - name : Validate result
2227 run : |
23- [[ "Hello World!" == "${{ steps.pascal.outputs.result }}" ] ] || exit 1;
28+ [ "Hello World!" = "${{ steps.pascal.outputs.result }}" ] || exit 1;
Original file line number Diff line number Diff line change @@ -6,17 +6,23 @@ on: # yamllint disable-line rule:truthy
66 branches :
77 - " main"
88
9+ defaults :
10+ run :
11+ shell : sh
12+
913jobs :
10- functional-tests :
14+ functional-tests-remote :
1115 name : Functional tests
1216 timeout-minutes : 5
1317 runs-on : ubuntu-latest
1418 steps :
15- - uses : actions/checkout@v4
16- - uses : fabasoad/pascal-action@main
19+ - name : Checkout ${{ github.repository }}
20+ uses : actions/checkout@v4
21+ - name : Run Pascal script
22+ uses : fabasoad/pascal-action@main
1723 id : pascal
1824 with :
1925 path : ./HelloWorld.pas
2026 - name : Validate result
2127 run : |
22- [[ "Hello World!" == "${{ steps.pascal.outputs.result }}" ] ] || exit 1;
28+ [ "Hello World!" = "${{ steps.pascal.outputs.result }}" ] || exit 1;
Original file line number Diff line number Diff line change 1+ ---
2+ name : Linting
3+
4+ on : # yamllint disable-line rule:truthy
5+ pull_request : {}
6+ push :
7+ branches :
8+ - main
9+
10+ jobs :
11+ pre-commit :
12+ name : Pre-commit
13+ uses : fabasoad/reusable-workflows/.github/workflows/wf-pre-commit.yml@main
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1111 name : Create release
1212 runs-on : ubuntu-latest
1313 steps :
14- - uses : actions/checkout@v4
14+ - name : Checkout ${{ github.repository }}
15+ uses : actions/checkout@v4
1516 with :
1617 fetch-depth : 0
1718 - name : Get changelog
Original file line number Diff line number Diff line change 1+ ---
2+ name : Security
3+
4+ on : # yamllint disable-line rule:truthy
5+ pull_request : {}
6+ push :
7+ branches :
8+ - main
9+
10+ defaults :
11+ run :
12+ shell : sh
13+
14+ jobs :
15+ code-scanning :
16+ name : Code scanning
17+ runs-on : ubuntu-latest
18+ steps :
19+ - name : Checkout ${{ github.repository }}
20+ uses : actions/checkout@v4
21+ - name : Initialize CodeQL
22+ uses : github/codeql-action/init@v3
23+ with :
24+ languages : " javascript"
25+ - name : Perform CodeQL Analysis
26+ id : codeql-analysis
27+ uses : github/codeql-action/analyze@v3
28+ - name : Upload to GHAS
29+ if : always()
30+ uses : github/codeql-action/upload-sarif@v3
31+ with :
32+ category : " code-scanning"
33+ sarif_file : " ${{ steps.codeql-analysis.outputs.sarif-output }}"
34+ directory-scanning :
35+ name : Directory scanning
36+ runs-on : ubuntu-latest
37+ steps :
38+ - name : Checkout ${{ github.repository }}
39+ uses : actions/checkout@v4
40+ - name : Scan current project
41+ id : scan-directory
42+ uses : anchore/scan-action@v3
43+ with :
44+ by-cve : " true"
45+ path : " ."
46+ - name : Upload to GHAS
47+ if : always()
48+ uses : github/codeql-action/upload-sarif@v3
49+ with :
50+ category : " directory-scanning"
51+ sarif_file : " ${{ steps.scan-directory.outputs.sarif }}"
Original file line number Diff line number Diff line change 99 hooks :
1010 - id : detect-secrets
1111 - repo : https://github.com/gitleaks/gitleaks
12- rev : v8.18.0
12+ rev : v8.18.1
1313 hooks :
1414 - id : gitleaks
1515 # Dockerfile
@@ -20,13 +20,13 @@ repos:
2020 stages : ["push"]
2121 # Markdown
2222 - repo : https://github.com/igorshubovych/markdownlint-cli
23- rev : v0.37 .0
23+ rev : v0.38 .0
2424 hooks :
2525 - id : markdownlint-fix
2626 stages : ["commit"]
2727 # Yaml
2828 - repo : https://github.com/adrienverge/yamllint
29- rev : v1.32 .0
29+ rev : v1.33 .0
3030 hooks :
3131 - id : yamllint
3232 stages : ["push"]
3939 stages : ["push"]
4040 # Other
4141 - repo : https://github.com/pre-commit/mirrors-prettier
42- rev : v3.0.3
42+ rev : v3.1.0
4343 hooks :
4444 - id : prettier
4545 stages : ["commit"]
Original file line number Diff line number Diff line change 11MIT License
22
3- Copyright (c) 2020-2023 Yevhen Fabizhevskyi
3+ Copyright (c) 2020-2024 Yevhen Fabizhevskyi
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 66![ GitHub release] ( https://img.shields.io/github/v/release/fabasoad/pascal-action?include_prereleases )
77![ functional-tests-local] ( https://github.com/fabasoad/pascal-action/actions/workflows/functional-tests-local.yml/badge.svg )
88![ functional-tests-remote] ( https://github.com/fabasoad/pascal-action/actions/workflows/functional-tests-remote.yml/badge.svg )
9- ![ pre-commit] ( https://github.com/fabasoad/pascal-action/actions/workflows/pre-commit.yml/badge.svg )
9+ ![ security] ( https://github.com/fabasoad/pascal-action/actions/workflows/security.yml/badge.svg )
10+ ![ linting] ( https://github.com/fabasoad/pascal-action/actions/workflows/linting.yml/badge.svg )
1011
1112This action runs Pascal script.
1213
You can’t perform that action at this time.
0 commit comments