Skip to content

Commit

Permalink
Add release testing action
Browse files Browse the repository at this point in the history
  • Loading branch information
Admiral-Piett committed Nov 4, 2023
1 parent 1636d4f commit 441c9dc
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 6 deletions.
10 changes: 10 additions & 0 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ Here is a list of the APIs:
- [x] a command line argument to determine the environment to use in the config file (e.e.: Dev)
- [x] IN the config file you can create Queues, Topic and Subscription see the example config file in the conf directory

### Example: Passing Configuration to Docker
```shell
docker run \
--rm \
--name=goaws \
-v /path/on/host/goaws-config.yaml:/path/in/container/goaws-config.yaml \
-p=4100:4100 \
admiralpiett/goaws:v0.4.4-arm64 -config /path/in/container/goaws-config.yaml
```

## Debug logging can be turned on via a command line flag (e.g.: -debug)

## Note: The system does not authenticate or presently use https
Expand Down
32 changes: 30 additions & 2 deletions .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: PR-Tests
on: [pull_request]
jobs:

build:
name: Build
unit-tests:
name: Unit Test
runs-on: ubuntu-latest
steps:

Expand All @@ -22,3 +22,31 @@ jobs:
- name: Unit Tests
run: go test -cover -race ./app/...

release-test:
name: Build Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.18'
- run: go version

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: v1.19.2
args: release --snapshot --clean
5 changes: 4 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ jobs:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: '1.18'
- run: go version

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ goaws_linux_amd64
setenv.sh

.env

goaws-config.yaml
2 changes: 0 additions & 2 deletions makefile.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,3 @@ linux:
docker-release: linux
docker build -t pafortin/goaws .
docker tag pafortin/goaws pafortin/goaws:$(VERSION)


0 comments on commit 441c9dc

Please sign in to comment.