mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> [skip ci]
64 lines
1.6 KiB
YAML
64 lines
1.6 KiB
YAML
name: test
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
jest:
|
|
runs-on: ubuntu-latest
|
|
services:
|
|
redis:
|
|
image: redis
|
|
ports:
|
|
- 6379/tcp
|
|
options: --entrypoint redis-server
|
|
strategy:
|
|
matrix:
|
|
node-version: ['14', '16']
|
|
name: Jest on Node ${{ matrix.node-version }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3.0.0
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: 'yarn'
|
|
- run: yarn
|
|
- run: npm run jest
|
|
env:
|
|
REDIS_URL: redis://localhost:${{ job.services.redis.ports[6379] }}/
|
|
- name: Upload coverage to Codecov
|
|
uses: codecov/codecov-action@v2.1.0
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
docs:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: ['14', '16']
|
|
name: Build docs on Node ${{ matrix.node-version }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3.0.0
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: 'yarn'
|
|
- run: yarn
|
|
- name: Build docs
|
|
run: npm run docs:build
|
|
|
|
all:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: ['14', '16']
|
|
name: Build radar and maintainer on Node ${{ matrix.node-version }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3.0.0
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: 'yarn'
|
|
- run: yarn
|
|
- name: Build radar and maintainer
|
|
run: npm run build:all
|