fix: gitalk id too long to create create issue #34
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Test if the theme works well | |
name: Build Test | |
on: pull_request | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Setup Node.js env | |
- uses: actions/[email protected] | |
with: | |
node-version: '14.x' | |
# Get Hexo test utils | |
- uses: actions/checkout@v2 | |
with: | |
repository: 'hexojs/hexo-theme-unit-test' | |
# Make dirs for themes | |
- name: Make dirs for themes | |
run: mkdir themes | |
# Clone Kratos-Rebirth into themes dir | |
- uses: actions/checkout@v2 | |
with: | |
path: 'themes/kratos-rebirth' | |
# Edit hexo site settings | |
- name: Edit Hexo Theme settings | |
run: | | |
sed -i "s/language:/language: zh-CN/" "_config.yml" | |
sed -i "s/theme: landscape/theme: kratos-rebirth/" "_config.yml" | |
# Copy theme settings | |
- name: Copy theme settings | |
run: cp "themes/kratos-rebirth/.demo/_config.kratos-rebirth.yml" "_config.kratos-rebirth.yml" | |
# Install Hexo env | |
- name: Install Hexo environment | |
run: npm install | |
# Hexo build demo site | |
- name: Hexo build test | |
run: npx hexo generate |