source: josm/trunk/.github/workflows/codeql-analysis.yml

Last change on this file was 18993, checked in by taylor.smock, 2 months ago

Update actions to ones that support node 20 (patch by guylamar2006, see https://github.com/JOSM/josm/pull/136 )

File size: 975 bytes
Line 
1name: "CodeQL"
2
3on:
4 push:
5 branches: [ master ]
6 pull_request:
7 # The branches below must be a subset of the branches above
8 branches: [ master ]
9 schedule:
10 - cron: '45 4 * * 1'
11
12jobs:
13 analyze:
14 name: Analyze
15 runs-on: ubuntu-latest
16
17 strategy:
18 fail-fast: false
19 matrix:
20 language: [ 'java' ]
21
22 steps:
23 - name: Checkout repository
24 uses: actions/checkout@v4
25 with:
26 fetch-depth: 256
27
28 - name: Cache
29 uses: actions/cache@v4
30 with:
31 path: |
32 ~/.ivy2/cache/
33 ~/work/josm/josm/tools/
34 key: ${{ runner.os }}-ivy2-${{ hashFiles('build.xml', 'ivy.xml', 'tools/ivy.xml') }}
35
36 - name: Initialize CodeQL
37 uses: github/codeql-action/init@v2
38 with:
39 languages: ${{ matrix.language }}
40
41 - name: Compile with Ant
42 run: |
43 ant compile extract-libraries epsg
44
45 - name: Perform CodeQL Analysis
46 uses: github/codeql-action/analyze@v2
Note: See TracBrowser for help on using the repository browser.