Skip to content

Commit

Permalink
add GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ktr0731 committed Dec 10, 2020
1 parent 53c1328 commit 6a58f2b
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These are supported funding model platforms

github: [ktr0731]
custom: https://paypal.me/ktr0731
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

## Describe the bug

## To reproduce
<!--
Please write steps that reproduce the error.
If possible, please provide a Docker image for reproducing the error.
-->

## Expected behavior

## Screenshots
<!-- If applicable, add screenshots to help explain your problem. -->

## Environment
- OS:
- Terminal:
- go-fuzzyfinder version:

## Additional context
<!-- Add any other context about the problem here. -->
8 changes: 8 additions & 0 deletions .github/no-response.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
daysUntilClose: 7
responseRequiredLabel: 'response needed'
closeComment: >
This issue has been automatically closed because there has been no response
to our request for more information from the original author. With only the
information that is currently in the issue, we don't have enough information
to take action. Please reach out if you have or find the answers we need so
that we can investigate further.
38 changes: 38 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: main
on: [push, pull_request]
jobs:
test:
name: Build on ${{ matrix.os }} with Go ${{ matrix.go }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
go: ['1.14']
steps:
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Download dependencies
run: go mod download

- name: Cache modules
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.OS }}-go-${{ hashFiles('**/go.sum') }}

- name: Build
run: go build

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

- name: Lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.33.0
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# apigen

[![PkgGoDev](https://pkg.go.dev/badge/github.com/ktr0731/apigen)](https://pkg.go.dev/github.com/ktr0731/apigen)
[![GitHub Actions](https://github.com/ktr0731/apigen/workflows/main/badge.svg)](https://github.com/ktr0731/apigen/actions)

`apigen` generates API client via execution environment such as `curl`.

Expand Down

0 comments on commit 6a58f2b

Please sign in to comment.