Skip to content

Commit

Permalink
chore: update CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
slowhigh committed Jan 31, 2024
1 parent 3aeae12 commit 13c181e
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 41 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci-consumer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: build consumer

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: './consumer/go.mod'

- name: Build
working-directory: ./consumer
run: go build -v -o ./server ./cmd/server

- name: Test
working-directory: ./consumer
run: go test -v ./cmd/server
28 changes: 28 additions & 0 deletions .github/workflows/ci-producer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: build producer

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: './producer/go.mod'

- name: Build
working-directory: ./producer
run: go build -v -o ./server ./cmd/server

- name: Test
working-directory: ./producer
run: go test -v ./cmd/server
41 changes: 0 additions & 41 deletions .github/workflows/ci.yml

This file was deleted.

0 comments on commit 13c181e

Please sign in to comment.