Skip to content
This repository has been archived by the owner on Feb 7, 2025. It is now read-only.

Commit

Permalink
Merge pull request #16 from CDCgov/move-go-src
Browse files Browse the repository at this point in the history
Move Go Module to `src` Folder
  • Loading branch information
halprin authored May 16, 2024
2 parents 0ba2260 + 792304f commit 6c307f4
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version-file: ./src/go.mod

- name: Run unit tests
run: make unitTests
Expand All @@ -31,7 +31,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version-file: ./src/go.mod

- name: Vet
run: make vet
Expand All @@ -52,7 +52,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version-file: ./src/go.mod

- name: Build Image
run: make dockerBuild
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version-file: ./src/go.mod

- name: Compile and Build Docker Image
run: make dockerBuild
2 changes: 1 addition & 1 deletion .github/workflows/codeql_reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version-file: ./src/go.mod

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
compile:
go build -o ./reportstream-sftp-ingestion ./cmd/
cd ./src/ && go build -o ../reportstream-sftp-ingestion ./cmd/

unitTests:
go test ./...
cd ./src/ && go test ./...

vet:
go vet ./...
cd ./src/ && go vet ./...

formatCheck:
gofmt -l ./ && test -z "$(gofmt -l ./)"
cd ./src/ && gofmt -l ./ && test -z "$(gofmt -l ./)"

formatApply:
gofmt -w ./
cd ./src/ && gofmt -w ./

dockerBuild:
docker build . -t reportstream-sftp-ingestion
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
# ReportStream SFTP

## Requirements

Go installed on your machine

## Using and Running

To run the application use the below command

```shell
go run .
cd ./src/
go run ./cmd/
```

We also have other build/lint/test commands listed in [makefile](Makefile). You can run these in your terminal using the syntax: make (step name)
Expand Down Expand Up @@ -52,6 +55,7 @@ pre-commit install
### Testing

#### Unit Tests

```shell
make unitTests
```
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6c307f4

Please sign in to comment.