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