1
0
mirror of https://github.com/arduino/library-registry.git synced 2025-06-05 02:42:13 +03:00

15 Commits

Author SHA1 Message Date
Cristian Maglie
cbc98cd611 Removed all unused/obsolete workflows 2025-02-04 16:27:27 +01:00
Cristian Maglie
74dbd56c38 Removed no more used go project and related workflows 2025-01-29 14:41:18 +01:00
Cristian Maglie
3c296e9a5f Removed dep checks on golang libraries 2025-01-29 14:41:18 +01:00
Cristian Maglie
1cf374dece Use libraries-repository-engine to validate registry 2025-01-29 14:24:14 +01:00
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
a6634af0c7 Make "Check Go" workflow module path support extendable
Since it is not a primary component of the project, I puth the registry validator Go module in a subfolder of the
repository. The standardized Arduino tooling project "assets" at that time were designed for the more common project
structure of the module in the repository root. This meant some small modifications to the assets were required in order
to make them applicable to this repository's structure.

Since that time, the standardized assets have been improved so they can support arbitrary Go module locations, as is
needed here. A different approach was taken in order to also support any number of modules. Although this particular
repository is not likely to gain multiple modules, that is needed by other projects, and so it is a better approach in
general.
2021-08-12 19:03:58 -07:00
per1234
be8b1a06f4 Use Go 1.16 for registry validator
1.16 is now the preferred Go version for all Arduino tooling projects.

The update from Go 1.14 to 1.16 broke the task that runs golint. The good news is that the new `go install` command
eliminates the need for the workaround of running the `go get golang.org/x/lint/golint` command from outside the project
path.

The bad news is the `go list` command used to get the path of the golint installation does not work in the "module-aware
mode" that is now the default. In the end, I gave up on making the task work as before. I think it's better to require
the user to install golint and put the installation in the system `PATH`, displaying a helpful message when this has not
been done.
2021-08-11 04:16:38 -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
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
900b25859f Add CI workflow to check general file formatting
On every push, pull request, and periodically, check whether the repository's files are formatted according to
.editorconfig.
2021-07-14 17:16:29 -07:00