summaryrefslogtreecommitdiff
path: root/.github/workflows/unittest.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/unittest.yaml')
-rw-r--r--.github/workflows/unittest.yaml20
1 files changed, 20 insertions, 0 deletions
diff --git a/.github/workflows/unittest.yaml b/.github/workflows/unittest.yaml
new file mode 100644
index 0000000..bbb97f2
--- /dev/null
+++ b/.github/workflows/unittest.yaml
@@ -0,0 +1,20 @@
+name: Hexo Theme Chromate Test
+on: [push]
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Node.js envs
+ uses: actions/setup-node@v1
+ with:
+ node-version: "12.x"
+ - name: Generate
+ run: |
+ git clone https://github.com/hexojs/hexo-theme-unit-test.git test
+ git clone https://github.com/guiqiqi/storage.git config
+ mv config/_config.yml test/_config.yml
+ git clone https://github.com/guiqiqi/chromate.git test/themes/chromate
+ cd test
+ npm install
+ npm install podcast --save
+ npx hexo clean && npx hexo generate \ No newline at end of file