stoplightio / spectral-action

GitHub Action wrapper for Spectral - a JSON/YAML/OpenAPI/AsyncAPI/etc linter with custom rule support.
https://stoplight.io/open-source/spectral
Apache License 2.0
85 stars 46 forks source link

Include the /dist directory in the release instead of building the action in docker every time it runs #651

Open bobergj opened 1 year ago

bobergj commented 1 year ago

Context

Every time the actions runs there's a docker build step:

Build stoplightio/spectral-action@latest time: 1m 12s

That takes > 1 minute on the github ubuntu-latest (currently Ubuntu 22.04.1 LTS) image. The actual validation of our openapi spec takes just under a second.

Current Behavior

The action is setup as a docker container action that builds the action every time it is executed.

Expected Behavior

Assumptions

jamietanna commented 1 year ago

Relates to https://github.com/stoplightio/spectral-action/issues/452 - I may have a look at seeing if I can get a PR raised for this 🤞