This repository has been archived by the owner on Jun 24, 2024. It is now read-only.
INT-9845: fix pagination #122
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: Questions | |
on: [pull_request_target] | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out `main` branch | |
uses: actions/checkout@v3 | |
with: | |
path: source | |
- name: Check out target branch questions | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{github.event.pull_request.head.ref}} | |
repository: ${{github.event.pull_request.head.repo.full_name}} | |
path: target | |
- id: setup-node | |
name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Install dependencies for `main` branch | |
run: yarn install --cwd source --frozen-lockfile | |
- name: Validate questions on target branch | |
env: | |
MANAGED_QUESTIONS_JUPITERONE_ACCOUNT_ID: | |
${{ secrets.MANAGED_QUESTIONS_JUPITERONE_ACCOUNT_ID }} | |
MANAGED_QUESTIONS_JUPITERONE_API_KEY: | |
${{ secrets.MANAGED_QUESTIONS_JUPITERONE_API_KEY }} | |
run: | |
yarn --cwd source j1-integration validate-question-file -a | |
--frozen-lockfile $MANAGED_QUESTIONS_JUPITERONE_ACCOUNT_ID -k | |
$MANAGED_QUESTIONS_JUPITERONE_API_KEY -p | |
../target/jupiterone/questions/questions.yaml |