mirror of
https://github.com/goldbergyoni/nodebestpractices.git
synced 2025-11-01 18:46:54 +08:00
50 lines
903 B
YAML
50 lines
903 B
YAML
name: Lint & Generate HTML from Markdown
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
working-directory: .operations
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-20.04
|
|
env:
|
|
NODE_ENV: test
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Setup Node.js environment
|
|
uses: actions/setup-node@v2.1.2
|
|
with:
|
|
node-version: '14'
|
|
|
|
- run: npm install
|
|
- run: npm run lint
|
|
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Setup Node.js environment
|
|
uses: actions/setup-node@v2.1.2
|
|
with:
|
|
node-version: '14'
|
|
|
|
- run: npm install
|
|
- run: npm run build
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
IS_FORK: ${{ github.repository != 'goldbergyoni/nodebestpractices' }}
|