diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0f76f40..d812c3a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,4 +9,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 - run: npm install + - run: > + npm install $(node -e "const deps=require('./package.json').peerDependencies; + console.log(Object.keys(deps).map(key=>key+'@'+deps[key]).join(' '));") - run: npm run lint diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 793254b..7d3c8af 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,12 +7,19 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [10, latest] + node-version: [10, 14] fail-fast: false steps: - uses: actions/checkout@v2 with: repository: hexojs/hexo-starter + - uses: actions/checkout@v2 + with: + path: themes/icarus + - uses: actions/checkout@v2 + with: + repository: SukkaLab/hexo-many-posts + path: source/_posts/hexo-many-posts - uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} @@ -22,12 +29,8 @@ jobs: key: npm-cache restore-keys: npm-cache - run: npm install - - uses: actions/checkout@v2 - with: - path: themes/icarus - - uses: actions/checkout@v2 - with: - repository: SukkaLab/hexo-many-posts - path: source/_posts/hexo-many-posts + - run: > + npm install $(node -e "const deps=require('./package.json').peerDependencies; + console.log(Object.keys(deps).map(key=>key+'@'+deps[key]).join(' '));") - run: npx hexo config theme next - run: time npx hexo g