Skip to content

Commit

Permalink
Add GitHub Actions Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ww24 committed Sep 19, 2019
1 parent 2cd485a commit 4ab5250
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 125 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Go
on: [push]
jobs:
build:
name: Build by go ${{ matrix.go }}
runs-on: ubuntu-18.04
strategy:
matrix:
go: ["1.12", "1.13"]
steps:
- name: Set up Go 1.12
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
id: go

- name: Install lirc
run: |
sudo apt -qq update && sudo apt -qq install \
autoconf libtool libxml2-dev xsltproc python3 python3-setuptools
cd /tmp
git clone git://git.code.sf.net/p/lirc/git lirc
cd lirc
git checkout lirc-0.10.1
./autogen.sh
./configure
make
sudo make install
sudo ldconfig
sudo mkdir -p /var/run/lirc
lircd -v
- name: Check out code into the Go module directory
uses: actions/checkout@v1

- name: Launch lircd
run: |
export LIRC_RUN_PATH=/home/runner/work/lirc-web-api/lirc-web-api/lirc/test
sudo cp $LIRC_RUN_PATH/lircd.conf \
/usr/local/etc/lirc/lircd.conf.d/lighting.conf
sudo lircd --logfile=$LIRC_RUN_PATH/lirc.log \
--allow-simulate \
--driver simsend
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Build
run: |
go build -v .
- name: Test
run: |
go test ./...
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.*
!.gitignore
!.github

# golang
vendor
Expand Down
125 changes: 0 additions & 125 deletions wercker.yml

This file was deleted.

0 comments on commit 4ab5250

Please sign in to comment.