Skip to content

Commit

Permalink
Merge pull request #41 from dhis2/refactor-actions
Browse files Browse the repository at this point in the history
refactor: Deploy SNAPSHOT version on merge to main branch
  • Loading branch information
jbee authored Dec 1, 2023
2 parents 78ade49 + a5ba852 commit 8b33b22
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 53 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Run tests

on: [pull_request]
on:
push:
branches:
- 'main'

jobs:
unit-test:
Expand All @@ -17,8 +20,7 @@ jobs:
run: chmod +x ./gradlew
- name: Test
run: ./gradlew clean allTests

artifact:
publish:
name: Publish - Nexus
runs-on: ubuntu-latest
needs: unit-test
Expand Down
50 changes: 0 additions & 50 deletions .github/workflows/master.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Pull request

on: [pull_request]

jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
cache: 'gradle'
- name: Change wrapper permission
run: chmod +x ./gradlew
- name: Test
run: ./gradlew clean allTests

0 comments on commit 8b33b22

Please sign in to comment.