diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index f3e09a0..89d8083 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -2,20 +2,18 @@ name: GitHub Actions run-name: ${{ github.actor }} github actions on: [push] jobs: - Explore-GitHub-Actions: + build: runs-on: ubuntu-latest steps: - - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - - name: Check out repository code - uses: actions/checkout@v4 - - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ github.workspace }} - - name: Running tests - run: | - mvn test - - run: echo "🍏 This job's status is ${{ job.status }}." + - run: echo "The job was automatically triggered by a ${{ github.event_name }} event." + - uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + cache: maven + - name: Running tests + run: mvn test + - name: Build with Maven + run: mvn -B package --file pom.xml