diff --git a/.github/workflows/schema-tests.yaml b/.github/workflows/schema-tests.yaml index b9238205f2..b423303aae 100644 --- a/.github/workflows/schema-tests.yaml +++ b/.github/workflows/schema-tests.yaml @@ -20,12 +20,16 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 # checkout repo content + - uses: actions/checkout@v4 # checkout repo content + with: + fetch-depth: 0 - uses: actions/setup-node@v4 # setup Node.js with: node-version: '20.x' - - name: Install dependencies - run: npm i + - name: Install dependencies from main + run: | + git checkout remotes/origin/main -- package.json + npm i - name: Run tests run: npm run test diff --git a/.github/workflows/validate-markdown.yaml b/.github/workflows/validate-markdown.yaml index 5825171960..bc5e757315 100644 --- a/.github/workflows/validate-markdown.yaml +++ b/.github/workflows/validate-markdown.yaml @@ -18,7 +18,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 # checkout repo content + - uses: actions/checkout@v4 # checkout repo content + with: + fetch-depth: 0 + - name: use the javascript environment from main + run: | + git checkout remotes/origin/main -- package.json - uses: actions/setup-node@v4 # setup Node.js with: node-version: '14.x'