ci setup
This commit is contained in:
parent
d9ba8c5e27
commit
89a92dc8cd
3 changed files with 67 additions and 0 deletions
10
.github/dependabot.yml
vendored
Normal file
10
.github/dependabot.yml
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: gradle
|
||||||
|
directory: "/"
|
||||||
|
target-branch: "develop"
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
||||||
|
day: "monday"
|
||||||
|
time: "12:00"
|
||||||
|
open-pull-requests-limit: 15
|
||||||
26
.github/workflows/publish-workflow.yml
vendored
Normal file
26
.github/workflows/publish-workflow.yml
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
name: Library Package Publishing
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types:
|
||||||
|
- created
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish-library:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
packages: write
|
||||||
|
contents: read
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Setup Java
|
||||||
|
uses: actions/setup-java@v2
|
||||||
|
with:
|
||||||
|
distribution: 'adopt'
|
||||||
|
java-version: '11'
|
||||||
|
- name: Assemble project
|
||||||
|
env:
|
||||||
|
GITHUB_USERNAME: "fknives"
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: ./gradlew publishMavenJavaPublicationToGitHubPackagesRepository
|
||||||
31
.github/workflows/pull-request-workflow.yml
vendored
Normal file
31
.github/workflows/pull-request-workflow.yml
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
name: Verify Pull request is correct
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- develop
|
||||||
|
|
||||||
|
env:
|
||||||
|
GITHUB_USERNAME: "fknives"
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
run-tests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Setup Java
|
||||||
|
uses: actions/setup-java@v2
|
||||||
|
with:
|
||||||
|
distribution: 'adopt'
|
||||||
|
java-version: '11'
|
||||||
|
- name: Run Java Unit Tests
|
||||||
|
run: ./gradlew processor:test
|
||||||
|
- uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: Java Unit Test Results
|
||||||
|
path: processor/build/reports/tests/test/index.html
|
||||||
|
retention-days: 1
|
||||||
Loading…
Add table
Add a link
Reference in a new issue