upgrade-deps #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |