Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding broken links check using github actions #54

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Link Checker
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
linkchecker:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: lychee Link Checker
id: lychee
uses: lycheeverse/lychee-action@master
with:
args: --accept=200,403,429 "**/*.html" "**/*.md" "**/*.txt" "**/*.json"
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Fail if there were link errors
run: exit ${{ steps.lychee.outputs.exit_code }}
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
- [OpenSearch Plugins](#opensearch-plugins)
- [Naming Conventions](#naming-conventions)
- [Managing OpenSearch Plugins](#managing-opensearch-plugins)
- [Building Plugins with OpenSearch](#building-plugins-with-opensearch)
- [Upgrading Plugins to work with OpenSearch](#upgrading-plugins-to-work-with-opensearch)
- [Installing Plugins](#installing-plugins)
- [Plugin Release Notes](#plugin-release-notes)
- [Headers](#headers)
- [Naming Conventions](#naming-conventions)
- [Managing OpenSearch Plugins](#managing-opensearch-plugins)
- [Building Plugins with OpenSearch](#building-plugins-with-opensearch)
- [Upgrading Plugins to work with OpenSearch](#upgrading-plugins-to-work-with-opensearch)
- [Installing Plugins](#installing-plugins)
- [Plugin Release Notes](#plugin-release-notes)
- [Headers](#headers)
- [Standards](#standards)
- [Contributing](#contributing)
- [License](#license)

Expand Down Expand Up @@ -42,6 +43,10 @@ Plugins generally use a standard format for release notes, see [RELEASE_NOTES](.

See [HEADERS](HEADERS.md) for details of headers including licenses.

### Standards

See [STANDARDS](STANDARDS.md) for information regarding plugin standards.

## Contributing

See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information.
Expand Down
22 changes: 22 additions & 0 deletions STANDARDS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Plugin Standards

This document lists down the standards for OpenSearch plugins which can be used by plugin authors.

- [Plugin Standards](#plugin-standards)
- [Broken Links Checker](#broken-links-checker)
- [Plugin Release Notes](#plugin-release-notes)
- [License Headers](#license-headers)

## Broken Links Checker

Create a Github Actions workflow to check for broken links in text files (.md, .html, .txt, .json) on pull requests and push. See [.github/workflows/links.yml](.github/workflows/links.yml) for an example.

See [lycheeverse/lychee-action](https://github.com/lycheeverse/lychee-action) for more information.

## Plugin Release Notes

Release notes for plugins are located at [RELEASE_NOTES.md](RELEASE_NOTES.md).

## License Headers

License Header details are located at [HEADERS.md](HEADERS.md).