From dee313cbfcf720e11e0a4b45d4b49ab153479dd8 Mon Sep 17 00:00:00 2001 From: Prabhu Subramanian Date: Thu, 16 Jan 2025 20:17:28 +0000 Subject: [PATCH] Ruby reachables test Signed-off-by: Prabhu Subramanian --- .github/workflows/java-reachables-test.yml | 49 +++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/.github/workflows/java-reachables-test.yml b/.github/workflows/java-reachables-test.yml index ba317bf58..4014c52a9 100644 --- a/.github/workflows/java-reachables-test.yml +++ b/.github/workflows/java-reachables-test.yml @@ -7,7 +7,7 @@ concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true jobs: - build: + java-sample1: strategy: fail-fast: false matrix: @@ -51,3 +51,50 @@ jobs: with: name: bomresults path: bomresults + + ruby-sample1: + strategy: + fail-fast: false + matrix: + node-version: ['23.x'] + os: ['ubuntu-latest'] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - name: Set up JDK + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '23' + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.4' + bundler-cache: true + - name: npm install, build + run: | + corepack enable + corepack pnpm install + mkdir -p repotests + mkdir -p rubyresults + - uses: actions/checkout@v4 + with: + repository: 'campsite/campsite' + path: 'repotests/campsite' + ref: '10197238bbbefd9c9ac7c77467b647fd93993ba0' + - name: bundle install + run: | + cd repotests/campsite/api + bundle install + node bin/cdxgen.js -p -t ruby --profile research -o bom.json . + cp bom.json *.slices.json $GITHUB_WORKSPACE/rubyresults + env: + BUNDLE_PATH: vendor/bundle + CDXGEN_DEBUG_MODE: debug + - uses: actions/upload-artifact@v4 + with: + name: rubyresults + path: rubyresults