Skip to content

Commit

Permalink
Add GitHub workflow for checking integration with bundlers
Browse files Browse the repository at this point in the history
  • Loading branch information
romaricpascal committed Apr 30, 2024
1 parent d3d31fc commit f7f0aa8
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/bundler-integrations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Bundler integrations

on:
workflow_call:
workflow_dispatch:

jobs:
install:
name: Install
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
run: |
! grep "Accordion" dist/${{matrix.bundler}}/*.js

0 comments on commit f7f0aa8

Please sign in to comment.