Last change
on this file since 18400 was 18056, checked in by Don-vip, 4 years ago |
GitHub Actions : reuse Ivy cache across all workflows to speed-up static code analyses
|
File size:
979 bytes
|
Rev | Line | |
---|
[17487] | 1 | name: "CodeQL"
|
---|
| 2 |
|
---|
| 3 | on:
|
---|
| 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 |
|
---|
| 12 | jobs:
|
---|
| 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@v2
|
---|
| 25 | with:
|
---|
| 26 | fetch-depth: 256
|
---|
| 27 |
|
---|
[18056] | 28 | - name: Cache
|
---|
| 29 | uses: actions/cache@v2.0.0
|
---|
| 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 |
|
---|
[17487] | 36 | - name: Initialize CodeQL
|
---|
| 37 | uses: github/codeql-action/init@v1
|
---|
| 38 | with:
|
---|
| 39 | languages: ${{ matrix.language }}
|
---|
| 40 |
|
---|
[18053] | 41 | - name: Compile with Ant
|
---|
| 42 | run: |
|
---|
| 43 | ant compile extract-libraries epsg
|
---|
[17487] | 44 |
|
---|
| 45 | - name: Perform CodeQL Analysis
|
---|
| 46 | uses: github/codeql-action/analyze@v1
|
---|
Note:
See
TracBrowser
for help on using the repository browser.