Skip to content

apply fixes

apply fixes #386

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
env:
BUILD_TARGET: DEFAULT
on:
push:
branches: [master, staging, demo, dev]
paths:
- 'src/**/*'
- '.storybook/**/*'
- 'public/**/*'
- 'webpack/**/*'
- '.github/workflows/**/*'
- 'package*.json'
- 'jest.config.js'
- 'netlify.toml'
- 'babel.config.js'
- 'create-env.js'
- 'tsconfig.json'
pull_request:
branches: [master, staging, demo, dev]
paths:
- 'src/**/*'
- '.storybook/**/*'
- 'public/**/*'
- 'webpack/**/*'
- '.github/workflows/**/*'
- 'package*.json'
- 'jest.config.js'
- 'netlify.toml'
- 'babel.config.js'
- 'create-env.js'
- 'tsconfig.json'
types:
- 'opened'
- 'synchronize'
- 'reopened'
- 'ready_for_review'
- 'edited'
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
strategy:
matrix:
node-version: [12.x, 14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present