feat: STRF-12284 Add dependabot #158
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: [14.x] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node }} | ||
uses: actions/setup-node@v3 | ||
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=${{ GITHUB_TOKEN }}" >> ~/.npmrc | ||
Check failure on line 30 in .github/workflows/build.yml GitHub Actions / BuildInvalid workflow file
|
||
- 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 |