forked from DIYgod/RSSHub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(misc): add eslint-plugin-yml, npm cache (DIYgod#8599)
- Loading branch information
Showing
19 changed files
with
333 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
coverage | ||
.vscode | ||
docker-compose.yml | ||
!/.github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# These are supported funding model platforms | ||
github: DIYgod | ||
patreon: DIYgod | ||
custom: ["https://afdian.net/@diygod", "https://diygod.me/images/zfb.jpg", "https://diygod.me/images/wx.jpg"] | ||
custom: ['https://afdian.net/@diygod', 'https://diygod.me/images/zfb.jpg', 'https://diygod.me/images/wx.jpg'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,61 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: npm | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "21:00" | ||
open-pull-requests-limit: 10 | ||
reviewers: | ||
- DIYgod | ||
labels: | ||
- dependencies | ||
ignore: | ||
- dependency-name: cheerio | ||
versions: | ||
- "> 1.0.0-rc.5" | ||
- dependency-name: remark | ||
versions: | ||
- "> 12.0.1" | ||
- dependency-name: remark | ||
versions: | ||
- "> 13.0.0, < 13.1" | ||
- dependency-name: remark-frontmatter | ||
versions: | ||
- "> 2.0.0" | ||
- dependency-name: remark-frontmatter | ||
versions: | ||
- ">= 3.0.a, < 3.1" | ||
- dependency-name: "@sentry/node" | ||
versions: | ||
- 6.0.4 | ||
- 6.2.3 | ||
- 6.3.1 | ||
- dependency-name: eslint | ||
versions: | ||
- 7.24.0 | ||
- dependency-name: ioredis | ||
versions: | ||
- 4.24.1 | ||
- dependency-name: string-width | ||
versions: | ||
- 4.2.1 | ||
- dependency-name: nock | ||
versions: | ||
- 13.0.8 | ||
- dependency-name: googleapis | ||
versions: | ||
- 67.1.0 | ||
- dependency-name: rss-parser | ||
versions: | ||
- 3.11.0 | ||
- package-ecosystem: npm | ||
directory: '/' | ||
schedule: | ||
interval: daily | ||
time: '21:00' | ||
open-pull-requests-limit: 10 | ||
reviewers: | ||
- DIYgod | ||
labels: | ||
- dependencies | ||
ignore: | ||
- dependency-name: cheerio | ||
versions: | ||
- '> 1.0.0-rc.5' | ||
- dependency-name: remark | ||
versions: | ||
- '> 12.0.1' | ||
- dependency-name: remark | ||
versions: | ||
- '> 13.0.0, < 13.1' | ||
- dependency-name: remark-frontmatter | ||
versions: | ||
- '> 2.0.0' | ||
- dependency-name: remark-frontmatter | ||
versions: | ||
- '>= 3.0.a, < 3.1' | ||
- dependency-name: '@sentry/node' | ||
versions: | ||
- 6.0.4 | ||
- 6.2.3 | ||
- 6.3.1 | ||
- dependency-name: eslint | ||
versions: | ||
- 7.24.0 | ||
- dependency-name: ioredis | ||
versions: | ||
- 4.24.1 | ||
- dependency-name: string-width | ||
versions: | ||
- 4.2.1 | ||
- dependency-name: nock | ||
versions: | ||
- 13.0.8 | ||
- dependency-name: googleapis | ||
versions: | ||
- 67.1.0 | ||
- dependency-name: rss-parser | ||
versions: | ||
- 3.11.0 | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
schedule: | ||
interval: daily | ||
time: '21:00' | ||
open-pull-requests-limit: 10 | ||
reviewers: | ||
- DIYgod | ||
labels: | ||
- dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,40 @@ | ||
name: '[docker] CI for releases' | ||
|
||
on: | ||
push: | ||
branches: master | ||
paths: | ||
- 'lib/**' | ||
- '.github/workflows/**' | ||
- 'Dockerfile' | ||
- 'package.json' | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- 'lib/**' | ||
- '.github/workflows/**' | ||
- 'Dockerfile' | ||
- 'package.json' | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- | ||
name: Build dockerfile (with push) | ||
env: | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
run: | | ||
docker buildx build \ | ||
--platform=linux/amd64,linux/arm/v7,linux/arm64 \ | ||
--output "type=image,push=true" \ | ||
--file ./Dockerfile . \ | ||
--tag $(echo "${DOCKER_USERNAME}" | tr '[:upper:]' '[:lower:]')/rsshub:latest \ | ||
--tag $(echo "${DOCKER_USERNAME}" | tr '[:upper:]' '[:lower:]')/rsshub:$(date +%Y)-$(date +%m)-$(date +%d) | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- name: Build dockerfile (with push) | ||
env: | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
run: | | ||
docker buildx build \ | ||
--platform=linux/amd64,linux/arm/v7,linux/arm64 \ | ||
--output "type=image,push=true" \ | ||
--file ./Dockerfile . \ | ||
--tag $(echo "${DOCKER_USERNAME}" | tr '[:upper:]' '[:lower:]')/rsshub:latest \ | ||
--tag $(echo "${DOCKER_USERNAME}" | tr '[:upper:]' '[:lower:]')/rsshub:$(date +%Y)-$(date +%m)-$(date +%d) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,29 @@ | ||
name: '[docker] CI for build tests' | ||
|
||
on: | ||
pull_request: | ||
branches: master | ||
paths: | ||
- 'lib/**' | ||
- 'Dockerfile' | ||
- 'package.json' | ||
# Please, always create a pull request instead of push to master. | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- 'lib/**' | ||
- 'Dockerfile' | ||
- 'package.json' | ||
|
||
# Please, always create a pull request instead of push to master. | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- name: Build dockerfile and Run (without push) | ||
run: | | ||
docker build \ | ||
--tag rsshub:latest \ | ||
--file ./Dockerfile . | ||
chmod +x scripts/docker/test-docker.sh | ||
scripts/docker/test-docker.sh | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- name: Build dockerfile and Run (without push) | ||
run: | | ||
docker build \ | ||
--tag rsshub:latest \ | ||
--file ./Dockerfile . | ||
chmod +x scripts/docker/test-docker.sh | ||
scripts/docker/test-docker.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.