-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI all the things. Thanks again to packagecloud
- Loading branch information
1 parent
934e076
commit 4c43ad4
Showing
18 changed files
with
127 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
on: [push, pull_request] | ||
name: Build | ||
jobs: | ||
build: | ||
name: build | ||
strategy: | ||
matrix: | ||
go-version: [1.18.3] | ||
os: [ubuntu-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- run: go test ./... | ||
- run: go build ./cmd/go-musicbot | ||
|
||
- name: setup fpm | ||
run: sudo gem install fpm | ||
|
||
- name: git status | ||
run: git status | ||
|
||
- name: make package | ||
run: ./deb-build.sh | ||
|
||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: package | ||
path: ./out/packages/* | ||
retention-days: 5 | ||
|
||
- name: Setup package cloud | ||
if: github.event_name == 'release' && github.event.action == 'created' | ||
run: sudo gem install package_cloud | ||
- name: Push to package_cloud | ||
if: github.event_name == 'release' && github.event.action == 'created' | ||
env: | ||
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }} | ||
run: package_cloud push svenwiltink/go-musicbot/ubuntu/bionic ./out/packages/* | ||
golangci: | ||
name: lint | ||
strategy: | ||
matrix: | ||
go-version: [1.18.x] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- uses: actions/checkout@v3 | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
.idea | ||
.vscode | ||
vendor | ||
config.json | ||
whitelist.txt | ||
out | ||
pkg_root | ||
go-musicbot |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[![.deb provided by packagecloud](https://img.shields.io/badge/deb-packagecloud.io-844fec.svg)](https://packagecloud.io/svenwiltink/go-musicbot)[![Build Status](https://travis-ci.org/svenwiltink/go-MusicBot.svg?branch=master)](https://travis-ci.org/svenwiltink/go-MusicBot) | ||
[![.deb provided by packagecloud](https://img.shields.io/badge/deb-packagecloud.io-844fec.svg)](https://packagecloud.io/svenwiltink/go-musicbot)![build status](https://github.com/svenwiltink/go-musicbot/actions/workflows/build.yml/badge.svg) | ||
|
||
A simple musicbot to run on IRC or Mattermost. Debian package hosted on [packagecloud](https://packagecloud.io/svenwiltink/go-musicbot) | ||
A simple musicbot to run on IRC, mattermost or slack. Debian package hosted on [packagecloud](https://packagecloud.io/svenwiltink/go-musicbot) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.