From 4ebd77623ca8331f60ca1f740508457bd0ed6cf5 Mon Sep 17 00:00:00 2001 From: DeveloperC Date: Sat, 16 Sep 2023 10:54:16 +0100 Subject: [PATCH] style: changing target to unit-test --- .github/workflows/continuous-integration.yml | 7 ++++--- Earthfile | 4 ++-- ci/{unit-testing.sh => unit-test.sh} | 0 3 files changed, 6 insertions(+), 5 deletions(-) rename ci/{unit-testing.sh => unit-test.sh} (100%) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 74a1161..8a1f69f 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -99,12 +99,13 @@ jobs: uses: actions/checkout@v3 - name: Compile Linux AMD64. run: earthly --ci +compile-linux-amd64 - unit-testing: + unit-test: + name: Unit Test runs-on: ubuntu-latest steps: - name: Download Earthly v0.7.17. run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.7.17/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'" - name: Checkout code. uses: actions/checkout@v3 - - name: Check unit testing. - run: earthly --ci +unit-testing + - name: Unit test. + run: earthly --ci +unit-test diff --git a/Earthfile b/Earthfile index 8bef238..494f08a 100644 --- a/Earthfile +++ b/Earthfile @@ -200,11 +200,11 @@ compile-darwin-amd64: DO +SAVE_OUTPUT -unit-testing: +unit-test: FROM +golang-base DO +INSTALL_DEPENDENCIES DO +COPY_SOURCECODE - RUN ./ci/unit-testing.sh + RUN ./ci/unit-test.sh releasing: diff --git a/ci/unit-testing.sh b/ci/unit-test.sh similarity index 100% rename from ci/unit-testing.sh rename to ci/unit-test.sh