From c7f70be5ace9c3c9e343c7b3bd342e7cbf10dfe0 Mon Sep 17 00:00:00 2001 From: yuyawk Date: Wed, 10 Apr 2024 21:30:03 +0900 Subject: [PATCH] summarize scripts --- .github/workflows/tests.yml | 6 +++--- README.md | 4 ++-- execute_tests.bash => scripts/execute_tests.bash | 0 style_check.bash => scripts/style_check.bash | 0 validate_example.bash => scripts/validate_example.bash | 0 5 files changed, 5 insertions(+), 5 deletions(-) rename execute_tests.bash => scripts/execute_tests.bash (100%) rename style_check.bash => scripts/style_check.bash (100%) rename validate_example.bash => scripts/validate_example.bash (100%) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4b32bf6..e09f25d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -21,7 +21,7 @@ jobs: - name: Set up uses: ./.github/actions/setup - name: Run unit tests - run: ./execute_tests.bash + run: ./scripts/execute_tests.bash example: runs-on: ubuntu-22.04 @@ -33,7 +33,7 @@ jobs: - name: Set up uses: ./.github/actions/setup - name: Validate example - run: ./validate_example.bash + run: ./scripts/validate_example.bash style-check: runs-on: ubuntu-22.04 @@ -45,7 +45,7 @@ jobs: - name: Set up uses: ./.github/actions/setup - name: Run formatters and linters - run: ./style_check.bash + run: ./scripts/style_check.bash - name: Fail if some files are changed run: | if ! git diff --exit-code; then diff --git a/README.md b/README.md index 0f3d440..e559c70 100644 --- a/README.md +++ b/README.md @@ -40,9 +40,9 @@ In order to specify how to validate the error message, a struct `matcher` is ava ### How to test -Execute [`execute_tests.bash`](execute_tests.bash) after installing [`bazelisk`](https://github.com/bazelbuild/bazelisk). It executes `bazelisk test` and `bazelisk build` commands under the hood. +Execute [`scripts/execute_tests.bash`](scripts/execute_tests.bash) after installing [`bazelisk`](https://github.com/bazelbuild/bazelisk). It executes `bazelisk test` and `bazelisk build` commands under the hood. -When writing tests, in principle, use `tags = ["manual"]` if a test case target must fail with `bazelisk test`. In such a test case, confirm its failure in [`execute_tests.bash`](execute_tests.bash) one by one. +When writing tests, in principle, use `tags = ["manual"]` if a test case target must fail with `bazelisk test`. In such a test case, confirm its failure in [`scripts/execute_tests.bash`](scripts/execute_tests.bash) one by one. ## CI diff --git a/execute_tests.bash b/scripts/execute_tests.bash similarity index 100% rename from execute_tests.bash rename to scripts/execute_tests.bash diff --git a/style_check.bash b/scripts/style_check.bash similarity index 100% rename from style_check.bash rename to scripts/style_check.bash diff --git a/validate_example.bash b/scripts/validate_example.bash similarity index 100% rename from validate_example.bash rename to scripts/validate_example.bash