mirror of
https://github.com/cmur2/miflorad.git
synced 2024-12-22 02:54:24 +01:00
ci: use github actions
This commit is contained in:
parent
1bbaa6f6e1
commit
ba77404d7f
32
.github/workflows/ci.yml
vendored
Normal file
32
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
name: ci
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
schedule:
|
||||||
|
- cron: '3 4 * * 4' # weekly on thursday morning
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
go:
|
||||||
|
- '1.11'
|
||||||
|
- '1.12'
|
||||||
|
- '1.13'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Set up Go ${{ matrix.go }}
|
||||||
|
uses: actions/setup-go@v1
|
||||||
|
with:
|
||||||
|
go-version: ${{ matrix.go }}
|
||||||
|
- name: Set up Make
|
||||||
|
run: |
|
||||||
|
sudo apt-get -y install make
|
||||||
|
- name: Build
|
||||||
|
env:
|
||||||
|
GO111MODULE: on
|
||||||
|
GOPROXY: direct
|
||||||
|
GOSUMDB: off
|
||||||
|
run: |
|
||||||
|
make
|
11
.travis.yml
11
.travis.yml
@ -1,11 +0,0 @@
|
|||||||
---
|
|
||||||
sudo: false
|
|
||||||
language: go
|
|
||||||
go:
|
|
||||||
- "1.11.x"
|
|
||||||
- "1.12.x"
|
|
||||||
- "1.13.x"
|
|
||||||
- master
|
|
||||||
|
|
||||||
env:
|
|
||||||
- GO111MODULE=on GOPROXY=direct GOSUMDB=off
|
|
@ -1,6 +1,6 @@
|
|||||||
# miflorad
|
# miflorad
|
||||||
|
|
||||||
[![Build Status](https://travis-ci.org/cmur2/miflorad.svg?branch=master)](https://travis-ci.org/cmur2/miflorad)
|
![Build Status](https://github.com/cmur2/miflorad/workflows/ci/badge.svg)
|
||||||
|
|
||||||
This project aims to produce tools written in Go for interfacing with Xiaomi Flora sensors for IoT use cases.
|
This project aims to produce tools written in Go for interfacing with Xiaomi Flora sensors for IoT use cases.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user