You've already forked spark-boilerplate
Use gradle kotlin dsl, catalogs and update versions
This commit is contained in:
30
.gitea/workflows/build.yaml
Normal file
30
.gitea/workflows/build.yaml
Normal file
@ -0,0 +1,30 @@
|
||||
name: Build
|
||||
on: [push]
|
||||
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 }}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{"action":"${{ gitea.repository }}/action/${{ gitea.workflow }}","status":"running"}'
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up java
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
- name: Build
|
||||
id: build
|
||||
run: ./gradlew bootJar -x test
|
||||
- name: Publish status
|
||||
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 }}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{"action":"${{ gitea.repository }}/action/${{ gitea.workflow }}","status":"${{ steps.build.conclusion }}"}'
|
@ -1,15 +1,30 @@
|
||||
name: Spark Boilerplate Tests
|
||||
run-name: Spark boilerplate tests
|
||||
on: [push]
|
||||
name: Tests
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
run-tests:
|
||||
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 }}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{"action":"${{ gitea.repository }}/action/${{ gitea.workflow }}","status":"running"}'
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Set up JDK 17
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up java
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
- run: ./gradlew test
|
||||
- name: Run tests
|
||||
id: tests
|
||||
run: ./gradlew test
|
||||
- name: Publish status
|
||||
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 }}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{"action":"${{ gitea.repository }}/action/${{ gitea.workflow }}","status":"${{ steps.tests.conclusion }}"}'
|
Reference in New Issue
Block a user