Skip to content

Commit

Permalink
update GitHub CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Jan 6, 2022
1 parent 0a97b7f commit 7f65220
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 81 deletions.
72 changes: 0 additions & 72 deletions .github/ci.yml

This file was deleted.

15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js latest
uses: actions/setup-node@v2-beta
uses: actions/setup-node@v2
with:
node-version: "*"
- name: Get yarn cache directory path
Expand All @@ -33,7 +33,7 @@ jobs:
yarn dedupe --check
- name: Check or update Yarn cache
run: |
yarn install --immutable --skip-builds
yarn install --immutable --mode=skip-build
test:
name: Test on Node.js # GitHub will add ${{ matrix.node-version }} to this title
needs: prepare-yarn-cache
Expand All @@ -42,11 +42,17 @@ jobs:
matrix:
node-version: ["*", 14, 12]
os: ["ubuntu-latest", "windows-latest"]
hexo-version: [6]
include:
# Legacy hexo versions
- node-version: 12
os: ubuntu-latest
hexo-version: 5
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js latest # Run yarn on latest node
uses: actions/setup-node@v2-beta
uses: actions/setup-node@v2
with:
node-version: "*" # Build Babel on latest node LTS versions
- name: Get yarn cache directory path
Expand All @@ -59,8 +65,9 @@ jobs:
- name: Install
run: |
yarn install
yarn add --dev hexo@${{ matrix.hexo-version }}
- name: Use Node.js ${{ matrix.node-version }} # Checkout node version for test executor
uses: actions/setup-node@v2-beta
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Test
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# hexo-offline

[![npm version](https://img.shields.io/npm/v/hexo-offline.svg?style=flat-square)](https://www.npmjs.com/package/hexo-offline)
![Build Status](https://img.shields.io/github/workflow/status/JLHwung/hexo-offline/ci.svg?style=flat-square)
![Build Status](https://img.shields.io/github/workflow/status/JLHwung/hexo-offline/CI.svg?style=flat-square)
[![Coverage Status](https://img.shields.io/coveralls/JLHwung/hexo-offline.svg?style=flat-square)](https://coveralls.io/github/JLHwung/hexo-offline)
[![Dependencies Status](https://img.shields.io/david/JLHwung/hexo-offline.svg?style=flat-square)](https://david-dm.org/JLHwung/hexo-offline)
[![Dev Dependencies Status](https://img.shields.io/david/dev/JLHwung/hexo-offline.svg?style=flat-square)](https://david-dm.org/JLHwung/hexo-offline?type=dev)

hexo-offline is intended to provide [offline experience](https://web.dev/progressive-web-apps/) for [hexo](https://hexo.io) built static website. It uses _ServiceWorker_ under the hood. Simply install this plugin to your website and it should be offline ready by caching most of static assets.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"yaspeller-ci": "^1.0.2"
},
"peerDependencies": {
"hexo": "^5.0.0"
"hexo": "^5.0.0 || ^6.0.0"
},
"engines": {
"node": ">=12"
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3550,7 +3550,7 @@ fsevents@^1.2.7:
workbox-build: ^6.4.2
yaspeller-ci: ^1.0.2
peerDependencies:
hexo: ^5.0.0
hexo: ^5.0.0 || ^6.0.0
languageName: unknown
linkType: soft

Expand Down

0 comments on commit 7f65220

Please sign in to comment.