Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
build: changing modules targets to 'verb-noun' style
Browse files Browse the repository at this point in the history
  • Loading branch information
DeveloperC286 committed Sep 16, 2023
1 parent 342b100 commit f3a9849
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,16 @@ jobs:
uses: actions/checkout@v3
- name: Check linting.
run: earthly --ci +check-sh-linting
module-tidying:
modules:
name: Modules
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 module.
run: earthly --ci +check-module-tidying
- name: Check modules.
run: earthly --ci +check-modules
compile-darwin-amd64:
name: Compile Darwin AMD64
runs-on: ubuntu-latest
Expand Down
8 changes: 4 additions & 4 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -167,18 +167,18 @@ check-linting:
BUILD +check-github-actions-workflows-linting


check-module-tidying:
check-modules:
FROM +golang-base
DO +INSTALL_DEPENDENCIES
DO +COPY_SOURCECODE
RUN ./ci/check-module-tidying.sh
RUN ./ci/check-modules.sh


fix-module-tidying:
fix-modules:
FROM +golang-base
DO +INSTALL_DEPENDENCIES
DO +COPY_SOURCECODE
RUN ./ci/fix-module-tidying.sh
RUN ./ci/fix-modules.sh
SAVE ARTIFACT "go.mod" AS LOCAL "go.mod"
SAVE ARTIFACT "go.sum" AS LOCAL "go.sum"

Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ This amount should then be transferred into a savings goal, helping the customer
* [Check Formatting](#check-formatting)
* [Fix Formatting](#fix-formatting)
* [Check Linting](#check-linting)
* [Check Module Tidying](#check-module-tidying)
* [Fix Module Tidying](#fix-module-tidying)
* [Check Modules](#check-modules)
* [Fix Modules](#fix-modules)
* [Compile](#compile)
* [Unit Test](#unit-test)

Expand Down Expand Up @@ -163,18 +163,18 @@ You can check the source code passes all linting by running the command.
earthly +check-linting
```

#### Check Module Tidying
You can check there are no missing or redundant module requirements by running the command.
#### Check Modules
You can check there are no missing or redundant modules by running the command.

```sh
earthly +check-module-tidying
earthly +check-modules
```

#### Fix Module Tidying
#### Fix Modules
You can fix missing or redundant module requirements by running the command.

```sh
earthly +fix-module-tidying
earthly +fix-modules
```

#### Compile
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit f3a9849

Please sign in to comment.