This repository has been archived by the owner on May 20, 2024. It is now read-only.
add setup teardown images #60
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
name: Tester | |
on: [push, pull_request] | |
jobs: | |
tester: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
repository: hexojs/hexo-starter | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
- name: Install Dependencies | |
run: npm install | |
- uses: actions/checkout@v3 | |
with: | |
path: themes/next | |
- uses: actions/checkout@v3 | |
with: | |
repository: SukkaLab/hexo-many-posts | |
path: source/_posts/hexo-many-posts | |
- run: npx hexo config theme next | |
- uses: DamianReeves/write-file-action@master | |
with: | |
path: themes/next/scripts/error.js | |
contents: | | |
hexo.log.error = function(...params) { | |
console.error("ERROR", ...params); | |
process.exit(1); | |
} | |
- name: Test | |
run: npx hexo g |