Skip to content

set mqtt autoreconnect to true #202

set mqtt autoreconnect to true

set mqtt autoreconnect to true #202

Workflow file for this run

name: Golang CI
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
go-version: [1.18.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
env:
GOPATH: ${{ github.workspace }}
GO111MODULE: on
defaults:
run:
working-directory: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Checkout code
uses: actions/checkout@v2
with:
path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
- name: Build
run: go build -o dist/digitalstrom-mqtt-${{matrix.os}} ./main.go
- name: Test
run: go test -v ./...