Skip to content

chore: update CI workflow #6

chore: update CI workflow

chore: update CI workflow #6

Workflow file for this run

name: ci
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
strategy:
matrix:
go: [ '1.19.x', '1.20.x', '1.21.x' ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Build producer
working-directory: ./producer
run: go build -v -o ./server ./cmd/server
- name: Test producer
working-directory: ./producer
run: go test -v ./cmd/server