-
Notifications
You must be signed in to change notification settings - Fork 44
37 lines (29 loc) · 873 Bytes
/
build.yml
File metadata and controls
37 lines (29 loc) · 873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Build
on:
pull_request:
branches: [ master, main, bodl ]
push:
branches: [ master, main, bodl ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [20.x, 22.x, 24.x]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Set npm registry
run: echo "@bigcommerce-labs:registry=https://npm.pkg.github.com/" >> ~/.npmrc
- name: Set npm secrets
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.DEPENDABOT_GITHUB_TOKEN }}" >> ~/.npmrc
- name: Install Dependencies
run: npm i
- name: Lint the code
run: npm run lint
- name: Run test with coverage
run: npm run test-with-coverage