Debian Codegraph @

.github/workflows/rat.yml

raw
1 # Licensed to the Apache Software Foundation (ASF) under one or more
2 # contributor license agreements. See the NOTICE file distributed with
3 # this work for additional information regarding copyright ownership.
4 # The ASF licenses this file to You under the Apache License, Version 2.0
5 # (the "License"); you may not use this file except in compliance with
6 # the License. You may obtain a copy of the License at
7 #
8 # https://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 name: 'Rat'
17 on:
18 workflow_dispatch:
19 push:
20 branches: [ main ]
21 pull_request:
22 branches: [ main ]
23
24 concurrency:
25 group: ${{ github.workflow }}-${{ github.ref }}
26 cancel-in-progress: true
27
28 jobs:
29 rat:
30 runs-on: ubuntu-latest
31 steps:
32 - uses: actions/checkout@v5
33
34 - name: Cache Local Maven Repository
35 uses: actions/cache@v4
36 with:
37 path: ~/.m2/repository
38 key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
39 restore-keys: |
40 ${{ runner.os }}-maven-
41
42 - name: 'Setup Temurin JDK 8, 11, 17 & 21'
43 uses: actions/setup-java@v5
44 with:
45 distribution: 'temurin'
46 java-version: |
47 8
48 11
49 17
50 21
51
52 - name: 'Setup Maven 3.9.6'
53 uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
54 with:
55 maven-version: 3.9.6
56
57 - name: Run Rat
58 run: mvn test -Dmaven.main.skip=true -Dmaven.test.skip=true -DskipTests=true -Dinvoker.skip=true -P rat -pl :avro-toplevel