Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub Actions #51

Merged
merged 1 commit into from
Oct 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Go

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
erdaltsksn marked this conversation as resolved.
Show resolved Hide resolved

jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
# with Ubuntu 18.04, python-gnomekeyring has been deprecated and deleted
# from the archives so we need to use ubuntu-16.04.
# Do not forget to update Install Dependencies (Linux) step if the version
# of ubuntu is changed.
# https://launchpad.net/ubuntu/+source/gnome-python-desktop/+publishinghistory
os: [ubuntu-16.04, macOS-latest, windows-latest]

steps:
- name: Check out code into $GITHUB_WORKSPACE directory
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ^1.14
id: go

- name: Get dependencies
run: |
go get -v -t -d ./...

- name: Install Dependencies (Linux)
run: |
sudo apt-get install python-gnomekeyring
sudo apt-get install gnome-keyring
dbus-launch /usr/bin/python -c "import gnomekeyring;gnomekeyring.create_sync('login', '');"
if: matrix.os == 'ubuntu-16.04'
erdaltsksn marked this conversation as resolved.
Show resolved Hide resolved

- name: Build
run: |
go build -v ./...

- name: Test
run: |
go test -v ./...