Add gitea workflow dependencies
All checks were successful
Init / execute-tests (push) Successful in 3s
All checks were successful
Init / execute-tests (push) Successful in 3s
This commit is contained in:
parent
9d4d60aaa6
commit
99bd6d15ad
@ -1,11 +1,14 @@
|
||||
name: Build
|
||||
on: [push]
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ["Tests"]
|
||||
types:
|
||||
- completed
|
||||
jobs:
|
||||
execute-tests:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set running
|
||||
if: always()
|
||||
run: |
|
||||
curl -v -X POST https://barrelsofdata.com/api/v1/git/action/status/publish \
|
||||
-H 'X-API-KEY: ${{ secrets.STATUS_PUBLISH_API_KEY }}' \
|
||||
@ -20,7 +23,7 @@ jobs:
|
||||
distribution: 'temurin'
|
||||
- name: Build
|
||||
id: build
|
||||
run: ./gradlew bootJar -x test
|
||||
run: ./gradlew build -x test
|
||||
- name: Publish status
|
||||
if: always()
|
||||
run: |
|
||||
|
18
.gitea/workflows/init.yaml
Normal file
18
.gitea/workflows/init.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
name: Init
|
||||
on: [push]
|
||||
jobs:
|
||||
execute-tests:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Reset test status
|
||||
run: |
|
||||
curl -v -X POST https://barrelsofdata.com/api/v1/git/action/status/publish \
|
||||
-H 'X-API-KEY: ${{ secrets.STATUS_PUBLISH_API_KEY }}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{"action":"${{ gitea.repository }}/action/Tests","status":"starting"}'
|
||||
- name: Reset build status
|
||||
run: |
|
||||
curl -v -X POST https://barrelsofdata.com/api/v1/git/action/status/publish \
|
||||
-H 'X-API-KEY: ${{ secrets.STATUS_PUBLISH_API_KEY }}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{"action":"${{ gitea.repository }}/action/Build","status":"waiting for test"}'
|
@ -1,11 +1,14 @@
|
||||
name: Tests
|
||||
on: [push, pull_request]
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ["Init"]
|
||||
types:
|
||||
- completed
|
||||
jobs:
|
||||
execute-tests:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set running
|
||||
if: always()
|
||||
run: |
|
||||
curl -v -X POST https://barrelsofdata.com/api/v1/git/action/status/publish \
|
||||
-H 'X-API-KEY: ${{ secrets.STATUS_PUBLISH_API_KEY }}' \
|
||||
|
Loading…
Reference in New Issue
Block a user