-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add various linting to as compose services
- Loading branch information
Showing
3 changed files
with
48 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,36 +56,27 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
- uses: ./.github/prepare-docker-image | ||
|
||
- run: >- | ||
pip install yamllint==1.32.0 && | ||
yamllint -c .github/yamllint.yml -s . | ||
- name: Run yamllint | ||
run: eval $DOCKER_RUN yamllint | ||
|
||
csslint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
- uses: ./.github/prepare-docker-image | ||
|
||
- run: >- | ||
npm install [email protected] [email protected] -g && | ||
stylelint "**/*.css" --config .github/.stylelintrc.json | ||
- name: Run yamllint | ||
run: eval $DOCKER_RUN csslint | ||
|
||
tslint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
- uses: ./.github/prepare-docker-image | ||
|
||
- run: >- | ||
npm install [email protected] -g && | ||
tsc --noEmit -p .github/tsconfig.json | ||
- name: Run yamllint | ||
run: eval $DOCKER_RUN tslint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,6 +76,42 @@ services: | |
profiles: | ||
- rubocop | ||
|
||
yamllint: | ||
build: | ||
dockerfile_inline: | | ||
FROM python:3.11-alpine3.19 | ||
RUN pip install yamllint==1.32.0 | ||
WORKDIR /app | ||
volumes: | ||
- .:/app | ||
entrypoint: yamllint -c .github/yamllint.yml -s . | ||
profiles: | ||
- yamllint | ||
|
||
csslint: | ||
build: | ||
dockerfile_inline: | | ||
FROM node:20-alpine3.19 | ||
RUN npm install [email protected] [email protected] -g | ||
WORKDIR /app | ||
volumes: | ||
- .:/app | ||
entrypoint: stylelint "**/*.css" --config .github/.stylelintrc.json | ||
profiles: | ||
- csslint | ||
|
||
tslint: | ||
build: | ||
dockerfile_inline: | | ||
FROM node:20-alpine3.19 | ||
RUN npm install [email protected] -g | ||
WORKDIR /app | ||
volumes: | ||
- .:/app | ||
entrypoint: tsc --noEmit -p .github/tsconfig.json | ||
profiles: | ||
- tslint | ||
|
||
tests: | ||
image: reverser | ||
environment: | ||
|