mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
chore: fix container operations
Container operations are only supported on Linux runners
This commit is contained in:
@@ -3,8 +3,8 @@ name: test
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
build-linux:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
services:
|
||||
redis:
|
||||
@@ -17,8 +17,8 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
node-version: ['14', '16']
|
||||
os: [macos-latest, ubuntu-latest, windows-latest]
|
||||
|
||||
name: Node ${{ matrix.node_version }} on ${{ runner.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
@@ -35,3 +35,27 @@ jobs:
|
||||
uses: codecov/codecov-action@v2.1.0
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
node-version: ['14', '16']
|
||||
os: [macos-latest, windows-latest]
|
||||
|
||||
name: Node ${{ matrix.node_version }} on ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'yarn'
|
||||
- run: yarn
|
||||
- run: npm run jest
|
||||
- run: npm run docs:build
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v2.1.0
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user