From 851370a1883f489e17ccd6fc500567b171f2f3be Mon Sep 17 00:00:00 2001 From: King-Hin Leung Date: Tue, 12 Sep 2023 11:23:58 +0200 Subject: [PATCH] Update ci.yaml --- .github/workflows/ci.yaml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4fba7c4..96d84cb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,17 +6,34 @@ jobs: build-incremental-updater: name: Build the application for incremental-updater runs-on: ubuntu-latest + env: + CTP_CLIENT_ID: ${{ secrets.CTP_CLIENT_ID }} + CTP_CLIENT_SECRET: ${{ secrets.CTP_CLIENT_SECRET }} + CTP_PROJECT_KEY: ${{ secrets.CTP_PROJECT_KEY }} + CTP_SCOPE: ${{ secrets.CTP_SCOPE }} + CTP_REGION: ${{ secrets.CTP_REGION }} + CTP_STORE_KEY: ${{ secrets.CTP_STORE_KEY }} + SEARCH_PLATFORM_CONFIG: ${{ secrets.SEARCH_PLATFORM_CONFIG }} defaults: run: working-directory: incremental-updater steps: - - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v3 + - name: Use Node.js 16.x uses: actions/setup-node@v3 with: node-version: '16.x' - - run: npm ci - - run: npm run lint && npm run prettier + + - name: Install modules + run: npm ci + + - name: Check the coding style + run: npm run lint && npm run prettier + + - name: Execute integration test + run: npm run test build-full-ingestion: name: Build the application for full-ingestion