5
5
- main
6
6
pull_request :
7
7
jobs :
8
- # test:
9
- # runs-on: ${{ matrix.os }}
10
- # name: Tests
11
- # strategy:
12
- # fail-fast: false
13
- # matrix:
14
- # # NOTE(olafurpg) Windows is not enabled because it times out due to reasons I don't understand.
15
- # # os: [windows-latest, ubuntu-latest]
16
- # os: [ubuntu-latest]
17
- # java: [8, 11, 17]
18
- # steps:
19
- # - uses: actions/checkout@v2
20
- # - uses: actions/setup-java@v3
21
- # with:
22
- # distribution: "temurin"
23
- # cache: "sbt"
24
- # java-version: ${{ matrix.java }}
25
- # - name: Main project tests
26
- # run: sbt test
8
+ test :
9
+ runs-on : ${{ matrix.os }}
10
+ name : Tests
11
+ strategy :
12
+ fail-fast : false
13
+ matrix :
14
+ # NOTE(olafurpg) Windows is not enabled because it times out due to reasons I don't understand.
15
+ # os: [windows-latest, ubuntu-latest]
16
+ os : [ubuntu-latest]
17
+ java : [8, 11, 17]
18
+ steps :
19
+ - uses : actions/checkout@v2
20
+ - uses : actions/setup-java@v3
21
+ with :
22
+ distribution : " temurin"
23
+ cache : " sbt"
24
+ java-version : ${{ matrix.java }}
25
+ - name : Main project tests
26
+ run : sbt test
27
27
28
- # docker_test:
29
- # runs-on: ${{ matrix.os }}
30
- # name: Docker CLI tests
31
- # strategy:
32
- # fail-fast: true
33
- # matrix:
34
- # os: [ubuntu-latest]
35
- # steps:
36
- # - uses: actions/checkout@v2
28
+ docker_test :
29
+ runs-on : ${{ matrix.os }}
30
+ name : Docker CLI tests
31
+ strategy :
32
+ fail-fast : true
33
+ matrix :
34
+ os : [ubuntu-latest]
35
+ steps :
36
+ - uses : actions/checkout@v2
37
37
38
- # - uses: actions/setup-java@v3
39
- # with:
40
- # distribution: "temurin"
41
- # cache: "sbt"
42
- # java-version: 17
38
+ - uses : actions/setup-java@v3
39
+ with :
40
+ distribution : " temurin"
41
+ cache : " sbt"
42
+ java-version : 17
43
43
44
- # - name: Build Dockerised CLI
45
- # run: sbt cli/docker
44
+ - name : Build Dockerised CLI
45
+ run : sbt cli/docker
46
46
47
- # - run: |
47
+ - run : |
48
48
49
- # set -eu
50
- # check_repo() {
51
- # REPO=$1
52
- # mkdir -p .repos/$REPO
53
- # git clone https://github.com/$REPO.git .repos/$REPO
49
+ set -eu
50
+ check_repo() {
51
+ REPO=$1
52
+ mkdir -p .repos/$REPO
53
+ git clone https://github.com/$REPO.git .repos/$REPO
54
54
55
- # docker run -v $PWD/.repos/$REPO:/sources -w /sources sourcegraph/scip-java:latest scip-java index
56
- # file .repos/$REPO/index.scip || (echo "$REPO SCIP index doesn't exist!"; exit 1)
57
- # }
55
+ docker run -v $PWD/.repos/$REPO:/sources -w /sources sourcegraph/scip-java:latest scip-java index
56
+ file .repos/$REPO/index.scip || (echo "$REPO SCIP index doesn't exist!"; exit 1)
57
+ }
58
58
59
- # sudo apt install parallel
60
- # export -f check_repo
59
+ sudo apt install parallel
60
+ export -f check_repo
61
61
62
- # parallel -j4 check_repo ::: circe/circe indeedeng/iwf-java-sdk
62
+ parallel -j4 check_repo ::: circe/circe indeedeng/iwf-java-sdk
63
63
64
- # bazel:
65
- # runs-on: ubuntu-latest
66
- # steps:
67
- # - uses: actions/checkout@v2
68
- # - run: yarn global add @bazel/bazelisk
69
- # - run: bazel build //... --//semanticdb-javac:enabled=true
70
- # - run: bazel run scip-semanticdb:bazel -- --sourceroot "$PWD"
71
- # - run: du -h index.scip
72
- # - run: bazel build //... --@scip_java//semanticdb-javac:enabled=true
73
- # working-directory: examples/bazel-example
74
- # - run: bazel run @scip_java//scip-semanticdb:bazel -- --sourceroot "$PWD"
75
- # w
A3E2
orking-directory: examples/bazel-example
76
- # - run: du -h index.scip
77
- # working-directory: examples/bazel-example
64
+ bazel :
65
+ runs-on : ubuntu-latest
66
+ steps :
67
+ - uses : actions/checkout@v2
68
+ - run : yarn global add @bazel/bazelisk
69
+ - run : bazel build //... --//semanticdb-javac:enabled=true
70
+ - run : bazel run scip-semanticdb:bazel -- --sourceroot "$PWD"
71
+ - run : du -h index.scip
72
+ - run : bazel build //... --@scip_java//semanticdb-javac:enabled=true
73
+ working-directory : examples/bazel-example
74
+ - run : bazel run @scip_java//scip-semanticdb:bazel -- --sourceroot "$PWD"
75
+ working-directory : examples/bazel-example
76
+ - run : du -h index.scip
77
+ working-directory : examples/bazel-example
78
78
79
79
bazel_aspect :
80
80
runs-on : ubuntu-latest
@@ -89,13 +89,13 @@ jobs:
89
89
- run : du -h index.scip
90
90
working-directory : examples/bazel-example
91
91
92
- # check:
93
- # runs-on: ubuntu-latest
94
- # steps:
95
- # - uses: actions/checkout@v2
96
- # - uses: actions/setup-java@v3
97
- # with:
98
- # distribution: "temurin"
99
- # java-version: 17
100
- # cache: "sbt"
101
- # - run: sbt checkAll
92
+ check :
93
+ runs-on : ubuntu-latest
94
+ steps :
95
+ - uses : actions/checkout@v2
96
+ - uses : actions/setup-java@v3
97
+ with :
98
+ distribution : " temurin"
99
+ java-version : 17
100
+ cache : " sbt"
101
+ - run : sbt checkAll
0 commit comments