Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typos Dockerfile #109

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 3 additions & 20 deletions .github/workflows/spelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,11 @@
typos_check:
name: "文A Typos"
runs-on: "ubuntu-22.04"
timeout-minutes: 1
timeout-minutes: 10
steps:
-
name: "Checkout repository"
uses: "actions/checkout@v3.6.0"
-
name: "Search for misspellings"
#uses: "crate-ci/typos@v1.16.20"
env:
GH_TOKEN: "${{ github.token }}"
# yamllint disable rule:line-length
run: |
set -o pipefail
mkdir -p "${{ runner.temp }}/typos"
RELEASE_ASSET_URL="$(
gh api /repos/crate-ci/typos/releases/latest \
--jq '."assets"[] | select(."name" | test("^typos-.+-x86_64-unknown-linux-musl\\.tar\\.gz$")) | ."browser_download_url"'
)"
wget --secure-protocol=TLSv1_3 --max-redirect=1 --retry-on-host-error --retry-connrefused --tries=3 \
--quiet --output-document=- "${RELEASE_ASSET_URL}" \
| tar -xz -C "${{ runner.temp }}/typos" ./typos
"${{ runner.temp }}/typos/typos" --version
git grep --files-with-matches --null -I -e '.' \
| xargs --null --verbose -- "${{ runner.temp }}/typos/typos" --format json \
| jq --raw-output '"::warning file=\(.path),line=\(.line_num),col=\(.byte_offset)::\"\(.typo)\" should be \"" + (.corrections // [] | join("\" or \"") + "\".")'
name: Hello world action step

Check failure on line 32 in .github/workflows/spelling.yml

View workflow job for this annotation

GitHub Actions / YAML validity

32:19 [quoted-strings] string value is not quoted with double quotes
uses: ./

Check failure on line 33 in .github/workflows/spelling.yml

View workflow job for this annotation

GitHub Actions / YAML validity

33:19 [quoted-strings] string value is not quoted with double quotes
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:12.4-slim
FROM rust:bookworm as rustdeps

LABEL org.opencontainers.image.title="Byte-level care"
LABEL org.opencontainers.image.description="A robust web application"
Expand All @@ -19,3 +19,7 @@

RUN set -e -x \
&& ls -l -A

RUN cargo install typos-cli

RUN find / -name "typos*"

Check failure on line 25 in Dockerfile

View workflow job for this annotation

GitHub Actions / 🐳 Hadolint

DL3059 info: Multiple consecutive `RUN` instructions. Consider consolidation.
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: 'Hello World'

Check failure on line 1 in action.yml

View workflow job for this annotation

GitHub Actions / YAML validity

1:7 [quoted-strings] string value is not quoted with double quotes
description: 'Greet someone and record the time'

Check failure on line 2 in action.yml

View workflow job for this annotation

GitHub Actions / YAML validity

2:14 [quoted-strings] string value is not quoted with double quotes
runs:
using: 'docker'

Check failure on line 4 in action.yml

View workflow job for this annotation

GitHub Actions / YAML validity

4:3 [indentation] wrong indentation: expected 4 but found 2

Check failure on line 4 in action.yml

View workflow job for this annotation

GitHub Actions / YAML validity

4:10 [quoted-strings] string value is not quoted with double quotes
image: 'Dockerfile'

Check failure on line 5 in action.yml

View workflow job for this annotation

GitHub Actions / YAML validity

5:10 [quoted-strings] string value is not quoted with double quotes
Loading