Skip to content

Commit

Permalink
chore(ci): switch to Github Actions
Browse files Browse the repository at this point in the history
- to lower the amount of needed set up when using this template I have decided to move all the logic to Github Actions
  • Loading branch information
fallion committed Dec 15, 2019
1 parent 695515e commit 879536d
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 57 deletions.
56 changes: 0 additions & 56 deletions .drone.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Linters

on: [pull_request]

jobs:
validate-commits:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Commitsar check
uses: docker://outillage/commitsar
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Release

on:
push:
tags:
- "v*"

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Release Notary
uses: docker://outillage/release-notary
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Test

on: [pull_request]

jobs:
go:
runs-on: ubuntu-latest

strategy:
matrix:
go-version: [1.12.x, 1.13.x]

steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Test
run: make ci
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/fallion/go-template

go 1.12
go 1.13

0 comments on commit 879536d

Please sign in to comment.