Skip to content

Commit d2659fe

Browse files
committedFeb 24, 2020
refactor(ci): migrate to github actions
1 parent 669b8e0 commit d2659fe

File tree

5 files changed

+51
-44
lines changed

5 files changed

+51
-44
lines changed
 

‎.drone.yml

-43
This file was deleted.

‎.github/workflows/linters.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Linters
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
validate-commits:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Check out code into the Go module directory
10+
uses: actions/checkout@v1
11+
- name: Commitsar check
12+
uses: docker://outillage/commitsar

‎.github/workflows/release.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out code into the Go module directory
13+
uses: actions/checkout@v1
14+
- name: Release Notary
15+
uses: docker://outillage/release-notary
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

‎.github/workflows/test.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Test
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
go:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
go-version: [1.12.x, 1.13.x]
12+
13+
steps:
14+
- name: Install Go
15+
uses: actions/setup-go@v1
16+
with:
17+
go-version: ${{ matrix.go-version }}
18+
- name: Check out code into the Go module directory
19+
uses: actions/checkout@v1
20+
- name: Test
21+
run: make ci

‎Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ go-mod-tidy:
1414
git diff-index --quiet HEAD
1515

1616
# Run all tests & linters in CI
17-
ci: test go-mod-tidy
17+
ci: setup-test test go-mod-tidy

0 commit comments

Comments
 (0)