Skip to content
Permalink
Newer
Older
100644 69 lines (68 sloc) 1.77 KB
1
# Warning: This file is generated automatically, and should not be modified.
2
# Instead, please modify the template in the pr-checks directory and run:
3
# pip install ruamel.yaml && python3 sync.py
4
# to regenerate this file.
5
6
name: PR Check - Autobuild working directory
7
env:
8
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9
GO111MODULE: auto
10
on:
11
push:
12
branches:
13
- main
14
- releases/v1
15
- releases/v2
16
pull_request:
17
types:
18
- opened
19
- synchronize
20
- reopened
21
- ready_for_review
22
workflow_dispatch: {}
23
jobs:
24
test-autobuild-working-dir:
25
strategy:
26
matrix:
27
include:
28
- os: ubuntu-latest
29
version: latest
30
name: Autobuild working directory
31
timeout-minutes: 45
32
runs-on: ${{ matrix.os }}
33
steps:
34
- name: Check out repository
35
uses: actions/checkout@v3
36
- name: Prepare test
37
id: prepare-test
38
uses: ./.github/prepare-test
39
with:
40
version: ${{ matrix.version }}
41
- name: Test setup
42
shell: bash
43
run: |
44
# Make sure that Gradle build succeeds in autobuild-dir ...
45
cp -a ../action/tests/java-repo autobuild-dir
46
# ... and fails if attempted in the current directory
47
echo > build.gradle
48
- uses: ./../action/init
49
with:
50
languages: java
51
tools: ${{ steps.prepare-test.outputs.tools-url }}
52
env:
53
TEST_MODE: true
54
- uses: ./../action/autobuild
55
with:
56
working-directory: autobuild-dir
57
- uses: ./../action/analyze
58
env:
59
TEST_MODE: true
60
- name: Check database
61
shell: bash
62
run: |
63
cd "$RUNNER_TEMP/codeql_databases"
64
if [[ ! -d java ]]; then
65
echo "Did not find a Java database"
66
exit 1
67
fi
68
env:
69
INTERNAL_CODEQL_ACTION_DEBUG_LOC: true