test added workflow for validate
Some checks failed
Deploy / Validate (push) Failing after 1m24s
Deploy / CreateImage (push) Has been skipped
Deploy / DeployService (push) Has been skipped

This commit is contained in:
Pasha 2024-12-10 20:50:57 +03:00
parent 79b32e3770
commit cedb694f7d

@ -8,8 +8,28 @@ on:
- 'staging'
jobs:
Validate:
runs-on: [ hubstaging ]
steps:
- name: Check out repository code
uses: http://gitea.pena:3000/PenaDevops/actions.git/checkout@v1
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.23'
- name: Run Validator
run: |
cd cmd/validator
go build -o validator .
./validator
# ошибка если возникла то прервать пайплайн
env:
CreateImage:
runs-on: [hubstaging]
needs: Validate
uses: http://gitea.pena/PenaDevops/actions.git/.gitea/workflows/build-image.yml@v1.1.4-p7
with:
runner: hubstaging