From 7799f4f406179a8c4828e7fb33baf5b69920498b Mon Sep 17 00:00:00 2001 From: Durran Jordan Date: Fri, 7 Feb 2025 00:22:38 +0100 Subject: [PATCH] chore: add github action for webpack --- .github/workflows/webpack.yml | 47 +++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/webpack.yml diff --git a/.github/workflows/webpack.yml b/.github/workflows/webpack.yml new file mode 100644 index 0000000..3f2d5cf --- /dev/null +++ b/.github/workflows/webpack.yml @@ -0,0 +1,47 @@ +name: Lint + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js LTS + uses: actions/setup-node@v4 + with: + node-version: 'lts/*' + + - name: "Build libmongocrypt" + shell: bash + run: | + npm run install:libmongocrypt + + - name: "Install dependencies" + shell: bash + run: | + npm install + + - name: "Install dependencies in the Webpack bundle test package" + shell: bash + working-directory: ./test/bundling/webpack + run: | + npm install + + - name: "Install local mongodb-client-encryption into Webpack bundle test package" + shell: bash + working-directory: ./test/bundling/webpack + run: | + npm run install:ce + + - name: "Run webpack build" + shell: bash + working-directory: ./test/bundling/webpack + run: | + npm run build \ No newline at end of file