Skip to content

Merge pull request #274 from openedx/dependabot/npm_and_yarn/webpack-… #194

Merge pull request #274 from openedx/dependabot/npm_and_yarn/webpack-…

Merge pull request #274 from openedx/dependabot/npm_and_yarn/webpack-… #194

Workflow file for this run

name: node_js CI
on:
push:
branches:
- master
pull_request:
branches:
- '**'
jobs:
tests:
runs-on: ubuntu-20.04
strategy:
matrix:
node: [16]
npm: [8.5.x]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Nodejs
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: npm install -g npm@${{ matrix.npm }}
- name: Install dependencies
run: npm ci
- name: Pre-Tests setup
run: npm i -g gatsby
- name: Lint
run: npm run lint
- name: Test
run: npm run test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
- name: Build
run: ACTIVE_ENV=github npm run build