From 4537262c5137604306a5a5470b0d2c421520add3 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Fri, 3 Jul 2020 23:53:28 +0800 Subject: [PATCH] New action Tester --- .github/workflows/tester.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/tester.yml diff --git a/.github/workflows/tester.yml b/.github/workflows/tester.yml new file mode 100644 index 0000000..c4c1432 --- /dev/null +++ b/.github/workflows/tester.yml @@ -0,0 +1,36 @@ +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@v2 + with: + repository: hexojs/hexo-starter + - name: Use Node.js + uses: actions/setup-node@v1 + - name: Cache NPM dependencies + uses: actions/cache@v1 + with: + path: node_modules + key: ${{ runner.os }}-npm-cache + restore-keys: ${{ runner.os }}-npm-cache + - name: Install Dependencies + run: npm install + - uses: actions/checkout@v2 + with: + repository: next-theme/hexo-theme-next + path: themes/next + - uses: actions/checkout@v2 + with: + repository: SukkaLab/hexo-many-posts + path: source/_posts/hexo-many-posts + - run: npx hexo config theme next + - name: Test + run: npx hexo g