Kentico/gatsby-source-kontent

View on GitHub
.github/workflows/build.yml

Summary

Maintainability
Test Coverage
# 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: build

on:
  push:
    branches: [ master ]
  pull_request:

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2

    - name: Use Node.js
      uses: actions/setup-node@v2
      with:
        node-version-file: .nvmrc
        registry-url: https://registry.npmjs.org/
    - name: Install Dependencies and prepare packages
      run: npm ci
      env:
        CI: true

    - name: Lint
      run: npm run lint

    - name: Build
      run: npm run build

    - name: Tests
      run: npm run test -- --coverage