From f9814e11697857482cd5bf9c5854f81f52867680 Mon Sep 17 00:00:00 2001 From: Fabio Fantoni Date: Thu, 7 Dec 2023 18:05:31 +0100 Subject: [PATCH] add codespell github workflow and fix some typo (#296) * add codespell github workflow * fix some typo --- .github/workflows/codespell.yml | 15 +++++++++++++++ docker/README.md | 6 +++--- e2e-tests/create-test-env.sh | 2 +- e2e-tests/pages/access-control-page.ts | 2 +- 4 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/codespell.yml diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 0000000..0490b46 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,15 @@ +name: Codespell +on: [pull_request] + +jobs: + check: + name: Check + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: codespell + uses: codespell-project/actions-codespell@v2 + with: + only_warn: 1 + skip: package-lock.json,*.svg \ No newline at end of file diff --git a/docker/README.md b/docker/README.md index 4df09b1..718c1e0 100644 --- a/docker/README.md +++ b/docker/README.md @@ -1,15 +1,15 @@ # Wiretrustee Dashboard -Wiretrustee Dashboard is a the Wiretrustee Managemenet server UI. It allow users to signin, view setup keys and manage peers. This image is **not ready** for production use. +Wiretrustee Dashboard is a the Wiretrustee Management server UI. It allow users to signin, view setup keys and manage peers. This image is **not ready** for production use. ## Tags ```latest``` ```vX.X.X``` not available yet. -```main``` builded on every PR being merged to the repository +```main``` built on every PR being merged to the repository ## How to use this image HTTP run: ```shell docker run -d --rm -p 80:80 wiretrustee/dashboard:main ``` -Using SSL certificate from Let's Encript®: +Using SSL certificate from Let's Encrypt®: ```shell docker run -d --rm -p 80:80 -p 443:443 \ -e LETSENCRYPT_DOMAIN=app.mydomain.com \ diff --git a/e2e-tests/create-test-env.sh b/e2e-tests/create-test-env.sh index 6f22f68..0d8d844 100644 --- a/e2e-tests/create-test-env.sh +++ b/e2e-tests/create-test-env.sh @@ -387,7 +387,7 @@ check_nb_domain() { if [ "$DOMAIN" == "netbird.example.com" ]; then echo "The NETBIRD_DOMAIN cannot be netbird.example.com" > /dev/stderr - retrun 1 + return 1 fi return 0 } diff --git a/e2e-tests/pages/access-control-page.ts b/e2e-tests/pages/access-control-page.ts index 1bce171..81d7d0b 100644 --- a/e2e-tests/pages/access-control-page.ts +++ b/e2e-tests/pages/access-control-page.ts @@ -17,7 +17,7 @@ export class AccessControlPage { } async assertDefaultAccessCotrolIsCreated() { - await test.step('Assert that default cotrol access is created', async () => { + await test.step('Assert that default control access is created', async () => { await expect(this.defaulAccessControl).toBeVisible(); }) }