build(deps): bump actions/setup-node from 6.4.0 to 7.0.0 #67
Workflow file for this run
This file contains hidden or 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: Feature Store CI | |
| on: | |
| workflow_call: | |
| push: | |
| paths: | |
| - feature-store/** | |
| - .github/workflows/feature-store.yml | |
| pull_request: | |
| paths: | |
| - feature-store/** | |
| - .github/workflows/feature-store.yml | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| permissions: | |
| contents: read | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| runner: [curl, java, js] | |
| env: | |
| ARCADEDB_URL: http://localhost:2480 | |
| ARCADEDB_USER: root | |
| ARCADEDB_PASS: arcadedb | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| fetch-depth: 1 | |
| - name: Set up Java | |
| if: matrix.runner == 'java' | |
| uses: actions/setup-java@0f481fcb613427c0f801b606911222b5b6f3083a # v5.5.0 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Cache Maven repository | |
| if: matrix.runner == 'java' | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-m2-feature-store-${{ hashFiles('feature-store/java/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-m2-feature-store- | |
| - name: Set up Node.js | |
| if: matrix.runner == 'js' | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version: '22' | |
| - name: Cache npm | |
| if: matrix.runner == 'js' | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-npm-feature-store-${{ hashFiles('feature-store/js/package-lock.json') }} | |
| restore-keys: ${{ runner.os }}-npm-feature-store- | |
| - name: Install JS dependencies | |
| if: matrix.runner == 'js' | |
| working-directory: feature-store/js | |
| run: npm ci | |
| - name: Start ArcadeDB | |
| working-directory: feature-store | |
| run: docker compose up -d | |
| - name: Setup database | |
| working-directory: feature-store | |
| run: ./setup.sh | |
| - name: Run curl queries | |
| if: matrix.runner == 'curl' | |
| working-directory: feature-store | |
| run: ./queries/queries.sh | |
| - name: Build and run Java | |
| if: matrix.runner == 'java' | |
| working-directory: feature-store/java | |
| run: | | |
| mvn package --no-transfer-progress | |
| java -jar target/feature-store.jar | |
| - name: Run JavaScript queries | |
| if: matrix.runner == 'js' | |
| working-directory: feature-store/js | |
| run: node feature-store.js | |
| - name: Teardown | |
| if: always() | |
| working-directory: feature-store | |
| run: docker compose down |