1
0
mirror of https://github.com/arduino/library-registry.git synced 2025-05-17 20:21:10 +03:00

12 Commits

Author SHA1 Message Date
per1234
3b10690471 Add CI workflow to check for unapproved Go dependency licenses
A task and GitHub Actions workflow are provided here for checking the license types of Go project dependencies.

On every push and pull request that affects relevant files, the CI workflow will check:

- If the dependency licenses cache is up to date
- If any of the project's dependencies have an unapproved license type.

Approval can be based on:

- Universally allowed license type
- Individual dependency
2021-10-12 18:06:53 -07:00
per1234
a9de0f781e Add CI workflow to check the license file
Whenever one of the recognized license file names are modified in the repository, the workflow runs to check whether the
license can be recognized and whether it is of the expected type.

GitHub has a useful automated license detection system that determines the license type used by a repository, and
surfaces that information in the repository home page, the search web interface, and the GitHub API. This license
detection system requires that the license be defined by a dedicated file with one of several standardized filenames and
paths.

GitHub's license detection system uses the popular licensee tool, so this file also serves to define the license type
for any other usages of licensee, as well as to human readers of the file.

For this reason, and to ensure it remains a valid legal instrument, it's important that there be no non-standard
modifications to the license file or collisions with other supported licence files. This workflow ensures that any
changes which would change the license type or which license file is used by the detection are caught automatically.
2021-07-16 01:53:46 -07:00
per1234
92cd60a753 Add CI workflow to lint YAML files
On every push and pull request that affects relevant files, run yamllint to check the YAML files of
the repository for issues.

The .yamllint.yml file is used to configure yamllint:
https://yamllint.readthedocs.io/en/stable/configuration.html
2021-07-15 09:38:58 -07:00
per1234
39bf4cdceb Add CI workflow to validate GitHub Actions workflows
On every push or pull request that affects the repository's GitHub Actions workflows, and periodically, validate them
against the JSON schema.
2021-07-15 09:38:58 -07:00
per1234
03a76407e5 Add CI workflow to validate Taskfiles
On every push or pull request that affects the repository's Taskfiles, and periodically, validate them
against the JSON schema.
2021-07-15 09:38:58 -07:00
per1234
94d4c58230 Add CI workflow to check for Prettier formatting compliance
On every push and pull request that affects relevant files, check whether the formatting of supported
files is compliant with the Prettier style.
2021-07-15 09:38:58 -07:00
per1234
93f71bd038 Add CI workflow to lint and check formatting of Go code
On every push and pull request that affects relevant files, check the Go module for:

- Common detectable errors in the code.
- Use of outdated APIs
- Code style violations
- Code formatting inconsistency
- Misconfiguration
2021-07-15 09:38:58 -07:00
per1234
71ea0c6d07 Add CI workflow to lint and check formatting of Python files
On every push and pull request that affects relevant files, run flake8 to check the Python files of
the repository for issues and black to check formatting.

The .flake8 file is used to configure flake8:
https://flake8.pycqa.org/en/latest/user/configuration.html
2021-07-15 09:38:58 -07:00
per1234
bd36fe6325 Add registry validator integration tests
On every push and pull request that affects relevant files, run the integration tests of the registry data file validator.
2021-07-15 09:38:58 -07:00
per1234
f7c07a67cf Validate library registry data file format
On every push or pull request that modifies a relevant file, validate the data structure of registry.txt.
2021-07-15 09:32:50 -07:00
per1234
78fc6912b2 Add badge to readme for "Check General Formatting" workflow
This will make the status of the CI workflow visible at a glance to the repository maintainers, making it more likely to
bring their attention to any problems that might have developed.

I forgot to add this badge at the time I added the workflow, so playing catch up now.
2021-07-15 06:48:35 -07:00
per1234
8679787b82 Add readme
Provide a brief explanation of the purpose of the branch, with a link to the real documentation.
2021-06-01 07:38:47 -07:00