Skip to content

Commit

Permalink
Build: Add workflow for CI
Browse files Browse the repository at this point in the history
Build: Fix workflow

Build: Fix workflow

Build: Fix workflow

Build: Fix workflow

Tes: Bad linter

Tes: Bad linter

Test: Bad linter

Revert

Build: Rename workflow

Docs: Add workflow badge

Build: Change job name
  • Loading branch information
qraimbault committed Feb 3, 2020
1 parent b6f2826 commit 5f4f86f
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 31 deletions.
30 changes: 0 additions & 30 deletions .circleci/config.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Lint & Build
on: [push]
jobs:
run:
name: Run
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go

- name: Get linting dependencies
run: |
go get -u golang.org/x/lint/golint
- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Lint code
run: |
diff -u <(echo -n) <(gofmt -d ./)
/home/runner/go/bin/golint -set_exit_status $(go list ./... | grep -v /vendor/)
- name: Get dependencies
run: go get

- name: Build
run: GOOS=linux go build -ldflags="-s -w" -o bin/cerberus ./main.go
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Cerberus is a simple yet powerful, modern and easily configurable reverse proxy solution.
<br/><br/>

[![CircleCI](https://img.shields.io/circleci/build/github/forsam-education/cerberus/master?token=%090a0a96eee122b4d3a3bdee527f18341d37cd5180)](https://circleci.com/gh/forsam-education/cerberus)
![Lint & Build](https://github.com/forsam-education/cerberus/workflows/Lint%20&%20Build/badge.svg)
[![GoDoc](https://godoc.org/github.com/forsam-education/cerberus?status.svg)](https://godoc.org/github.com/forsam-education/cerberus)
[![Go Report Card](https://goreportcard.com/badge/github.com/forsam-education/cerberus)](https://goreportcard.com/report/github.com/forsam-education/cerberus)
![Version](https://img.shields.io/github/tag/forsam-education/cerberus?color=blue&label=alpha)
Expand Down

0 comments on commit 5f4f86f

Please sign in to comment.