-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub workflow for checking integration with bundlers
- Loading branch information
1 parent
f77ae3c
commit dd8700f
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Bundler integrations | ||
|
||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test-tree-shaking: | ||
name: Test tree shaking | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
PUPPETEER_SKIP_DOWNLOAD: true | ||
|
||
strategy: | ||
fail-fast: false | ||
|
||
matrix: | ||
bundler: | ||
- rollup | ||
- webpack | ||
- vite | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4.1.4 | ||
|
||
- name: Restore dependencies | ||
uses: ./.github/workflows/actions/install-node | ||
|
||
- name: Build GOV.UK Frontend | ||
uses: ./.github/workflows/actions/build | ||
|
||
- name: Build with bundler | ||
run: npm run ${{matrix.bundler}} -w @govuk-frontend/bundler-integrations | ||
|
||
# Check output for modules that should not be included | ||
- name: Check output | ||
working-directory: ./.github/workflows/bundler-integrations | ||
run: | | ||
! grep "Accordion" dist/${{matrix.bundler}}/*.js |
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