feat: STRF-12444 Suport Node 20, drop node 14, 16 #165
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
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] | |
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.CUSTOM_GA_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 |