Skip to content

Commit 7799f4f

Browse files
committed
chore: add github action for webpack
1 parent 6a6773e commit 7799f4f

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/webpack.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Use Node.js LTS
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 'lts/*'
20+
21+
- name: "Build libmongocrypt"
22+
shell: bash
23+
run: |
24+
npm run install:libmongocrypt
25+
26+
- name: "Install dependencies"
27+
shell: bash
28+
run: |
29+
npm install
30+
31+
- name: "Install dependencies in the Webpack bundle test package"
32+
shell: bash
33+
working-directory: ./test/bundling/webpack
34+
run: |
35+
npm install
36+
37+
- name: "Install local mongodb-client-encryption into Webpack bundle test package"
38+
shell: bash
39+
working-directory: ./test/bundling/webpack
40+
run: |
41+
npm run install:ce
42+
43+
- name: "Run webpack build"
44+
shell: bash
45+
working-directory: ./test/bundling/webpack
46+
run: |
47+
npm run build

0 commit comments

Comments
 (0)