forked from joernio/joern
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1.31 KB
/
upgrade-deps.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: upgrade-deps
# Nightly job that verifies that we can upgrade all internal dependencies
# This essentially runs `./updateDependencies.sh --non-interactive` and
# runs the regular tests, to notify us if some upstream dependency
# introduced breaking changes. If it's red, that's not the end of the
# world, but we should get it back on track to unblock others.
on:
schedule:
- cron: '0 2 * * *'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '19'
- uses: actions/cache@v3
with:
path: |
~/.sbt
~/.coursier
key: ${{ runner.os }}-sbt-${{ hashfiles('**/build.sbt') }}
- name: Upgrade all (internal) dependencies
run: ./updateDependencies.sh --non-interactive
- run: sbt clean +test
- run: ./testDistro.sh
- run: |
mkdir /tmp/foo
echo "int foo(int a, int b, int c, int d, int e, int f) {}" > /tmp/foo/foo.c
./joern --src /tmp/foo --run scan
./joern-scan /tmp/foo
./joern-scan --dump
- run: |
cd joern-cli/target/universal/stage
./schema-extender/test.sh