Ruby nodes edges #4159
Workflow file for this run
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: pr | |
on: pull_request | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-22.04, windows-2022, macos-12] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- uses: coursier/cache-action@v6 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '19' | |
- name: Compile and run tests | |
run: sbt clean +test | |
formatting: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '19' | |
- name: Check formatting | |
run: sbt ++2.13.8 scalafmtCheck test:scalafmtCheck | |
- run: echo "Previous step failed because code is not formatted. Run 'sbt scalafmt Test/scalafmt'" | |
if: ${{ failure() }} | |
test-scripts: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '19' | |
- 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 |