Don't omit dependencies if only some deep modules are declared (#484)

* Don't omit dependencies if only some deep modules are declared

* Run just check parse results from the workflow

* Base test on styled-components-react-native
This commit is contained in:
Jack Bates
2022-09-27 11:08:15 -07:00
committed by GitHub
parent 8e5c52a748
commit 00712c8734
20 changed files with 363 additions and 181 deletions

View File

@@ -0,0 +1,24 @@
name: Check parse results
#description: Confirm check parse results and the DT repo are in sync, to avoid potential DT CI outages.
on:
workflow_call:
workflow_dispatch:
jobs:
check-parse-results:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn build
- name: Parse declarations
run: yarn workspace @definitelytyped/publisher parse
- name: Check parse results
run: yarn workspace @definitelytyped/dtslint-runner check-parse-results
- if: always()
uses: actions/upload-artifact@v3
with:
name: ${{ github.job }}
path: packages/definitions-parser/data/

View File

@@ -36,6 +36,9 @@ jobs:
run: yarn lint
- name: test
run: yarn test
check-parse-results:
needs: build_and_test
uses: ./.github/workflows/check-parse-results.yml
publish_alpha:
name: publish alpha release
runs-on: ubuntu-latest