refactor: Replace linting configurations

The previous package was outdated, preventing us from updating TS.
This one also lints YAML and JSON,
and applies many more rules to the test files,
explaining all the changes in this PR.
This commit is contained in:
Joachim Van Herwegen
2023-10-27 11:28:57 +02:00
parent 58daeb684f
commit 6248ed0938
327 changed files with 6424 additions and 3375 deletions

View File

@@ -11,10 +11,10 @@ on:
jobs:
docker-meta:
# Generates the metadata (labels and tags) for the docker containers
# - push to main results in the edge tag
# - version tag results in edge, latest and semver, major, major.minor tags
# - push to versions/ results in the next tag
# Generates the metadata (labels and tags) for the docker containers
# - push to main results in the edge tag
# - version tag results in edge, latest and semver, major, major.minor tags
# - push to versions/ results in the next tag
runs-on: ubuntu-latest
outputs:
labels: ${{ steps.meta-main.outputs.labels || steps.meta-version.outputs.labels }}
@@ -49,8 +49,8 @@ jobs:
github-token: ${{ secrets.github_token }}
docker:
# Builds, tests and pushes docker containers
# Containers are built for both linux/amd64 and linux/arm/v7 platforms
# Builds, tests and pushes docker containers
# Containers are built for both linux/amd64 and linux/arm/v7 platforms
needs: docker-meta
runs-on: ubuntu-latest
steps:
@@ -73,7 +73,7 @@ jobs:
tags: ${{ needs.docker-meta.outputs.tags }}
labels: ${{ needs.docker-meta.outputs.labels }}
- name: "Test all docker-built image tags"
- name: Test all docker-built image tags
shell: bash
# Loop over all generated image:tag names and docker run them.
# If they aren't built previously, the command will error.