Skip to content

Commit

Permalink
feat: GH tests (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
xolider authored May 29, 2024
1 parent d8da5ea commit c6dd5c6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
strategy:
matrix:
os: ['ubuntu-latest', 'windows-latest']
name: 'Building for target ${{ matrix.os }}'
name: 'Building and test for target ${{ matrix.os }}'
runs-on: '${{ matrix.os }}'
steps:
- uses: actions/checkout@v4
Expand All @@ -17,4 +17,6 @@ jobs:
- run: chmod +x ./gradlew
name: 'Make ./gradlew executable'
- run: ./gradlew --no-daemon publishToMavenLocal -D"maven.user=${{ secrets.MAVEN_USER }}" -D"maven.password=${{ secrets.MAVEN_PASSWORD }}"
name: Build libraries
name: Build libraries
- run: ./gradlew --no-daemon test
name: Run tests
21 changes: 21 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
push:
branches:
- main

jobs:
build:
uses: xolider/Kteepass/.github/workflows/build-test.yml
deploy:
runs-on: 'ubuntu-latest'
needs:
- build
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
version: '21'
- run: chmod +x ./gradlew
name: 'Make ./gradlew executable'
- run: ./gradlew --no-daemon -D"maven.user=${{ secrets.MAVEN_USER }}" -D"maven.password=${{ secrets.MAVEN_PASSWORD }}" publish

0 comments on commit c6dd5c6

Please sign in to comment.