name: Run Checks on: workflow_call: secrets: CONTENTFUL_INTEGRATION_TEST_CMA_TOKEN: required: true CONTENTFUL_ORGANIZATION_ID: required: true CONTENTFUL_SPACE_ID: required: true jobs: test-e2e: runs-on: ubuntu-latest permissions: contents: read steps: - name: Checkout code uses: actions/checkout@v5 - name: Setup Node.js uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7 with: node-version: '24' cache: 'npm' - name: Install dependencies run: | npm ci npx allow-scripts - name: Restore the build folders uses: actions/cache/restore@v4 with: path: | built key: build-cache-${{ github.run_id }}-${{ github.run_attempt }} fail-on-cache-miss: true - name: Run e2e tests run: npm run test:e2e env: CONTENTFUL_INTEGRATION_TEST_CMA_TOKEN: ${{ secrets.CONTENTFUL_INTEGRATION_TEST_CMA_TOKEN }} CONTENTFUL_ORGANIZATION_ID: ${{ secrets.CONTENTFUL_ORGANIZATION_ID }} CONTENTFUL_SPACE_ID: ${{ secrets.CONTENTFUL_SPACE_ID }}