123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- name: Continuous Integration
- on:
- push:
- branches:
- - main
- pull_request:
- branches:
- - main
- jobs:
- build:
- runs-on: ${{ matrix.os }}
- strategy:
- matrix:
- os: [ubuntu-latest]
- node-version: [15.x]
- steps:
- - uses: actions/checkout@v2
- with:
- submodules: true
- fetch-depth: 0
- - name: Use Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@v1
- with:
- node-version: ${{ matrix.node-version }}
- - name: Install JS dependencies
- run: rm -rf node_modules && yarn install --frozen-lockfile
- - name: Check for linting errors
- run: yarn run lint
- hugo:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- with:
- submodules: true
- fetch-depth: 0
- - name: Setup Hugo
- uses: peaceiris/actions-hugo@v2
- with:
- hugo-version: '0.89.4'
- extended: true
- - name: Build
- run: hugo --minify
- working-directory: test
|