Skip to content

Commit

Permalink
Code-tracker workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pouryafard75 committed Mar 22, 2024
1 parent f7ae60a commit cc253a0
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/code-tracker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CodeTracker Tests

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]


jobs:
build:
runs-on: ubuntu-latest

env:
OAuthToken: ${{ secrets.OAUTHTOKEN }}
releaseVersion: CI-CodeTracker-SNAPSHOT

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'

- name: Build project with Gradle
run: ./gradlew publishToMavenLocal -x test -x javadoc -PbuildVersion=${{ env.releaseVersion }}

- name: Clone CodeTracker and Run the tests
run: |
git clone https://github.com/jodavimehran/code-tracker &&
cd code-tracker &&
mvn -B package --file pom.xml -Drm.version=${{ env.releaseVersion }}

0 comments on commit cc253a0

Please sign in to comment.