-
Notifications
You must be signed in to change notification settings - Fork 6
51 lines (46 loc) · 1.27 KB
/
verify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Maven Verify
on:
push: # Ignore releases and main dev branch
tags-ignore:
- 'v*'
branches:
- '**'
pull_request:
types: [opened, synchronize, reopened]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
INSTRUCTOR_USER: "instructor_e2e"
INSTRUCTOR_PASSWORD: ${{ secrets.INSTRUCTOR_PASSWORD }}
STUDENT_USER: "student_e2e"
ARTEMIS_URL: "https://artemis-test.ipd.kit.edu"
COURSE_ID: "4"
PROGRAMMING_EXERCISE_ID: "14"
jobs:
pre_job:
name: "Check for duplicate jobs"
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
concurrent_skipping: 'same_content_newer'
skip_after_successful_duplicate: 'true'
verify:
needs: pre_job
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
name: "Build and/or Deploy"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Java with Cache
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
cache: 'maven'
- name: Maven Verify
shell: bash
run: mvn -U -B verify