ci: add Forgejo verification workflow
All checks were successful
Verify / source-contract (push) Successful in 12s
All checks were successful
Verify / source-contract (push) Successful in 12s
This commit is contained in:
parent
e834692abb
commit
94a894dc93
1 changed files with 31 additions and 0 deletions
31
.forgejo/workflows/verify.yml
Normal file
31
.forgejo/workflows/verify.yml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
name: Verify
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
source-contract:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Verify repository entrypoints
|
||||
run: |
|
||||
test -f app/build.sh
|
||||
test -f app/src/ac/ac_svr.pgc
|
||||
test -d app/src/ac/svc
|
||||
test -f docker/docker-compose.yml
|
||||
|
||||
- name: Validate JSON artifacts
|
||||
run: git ls-files -z '*.json' | xargs -0 -r -n1 python3 -m json.tool >/dev/null
|
||||
|
||||
- name: Validate shell scripts
|
||||
run: git ls-files -z '*.sh' | xargs -0 -r -n1 bash -n
|
||||
|
||||
- name: Compile analysis tools
|
||||
run: python3 -m compileall -q tools
|
||||
Loading…
Add table
Add a link
Reference in a new issue