Skip to content

Commit e4235fc

Browse files
committed
initial skeleton
Signed-off-by: Elliot Murphy <[email protected]>
0 parents  commit e4235fc

File tree

359 files changed

+264866
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

359 files changed

+264866
-0
lines changed

.bazelrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
test --test_output=errors
2+
test --test_verbose_timeout_warnings

.bazelversion

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.6.0

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @statik
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
5+
---
6+
7+
**Describe the bug**
8+
A clear and concise description of what the bug is.
9+
10+
**To Reproduce**
11+
Steps to reproduce the behavior:
12+
1. Go to '...'
13+
2. Click on '....'
14+
3. Scroll down to '....'
15+
4. See error
16+
17+
**Expected behavior**
18+
A clear and concise description of what you expected to happen.
19+
20+
**Screenshots**
21+
If applicable, add screenshots to help explain your problem.
22+
23+
**Desktop (please complete the following information):**
24+
- OS: [e.g. Windows 10, macOS]
25+
- Browser [e.g. chrome, safari]
26+
- Version [e.g. 22]
27+
28+
**Additional context**
29+
Add any other context about the problem here.

.github/release-drafter.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name-template: "v$NEXT_PATCH_VERSION ⛴️"
2+
tag-template: "v$NEXT_PATCH_VERSION"
3+
categories:
4+
- title: "🎬 Features"
5+
labels:
6+
- "feature"
7+
- "enhancement"
8+
- title: "🐛 Bug Fixes"
9+
labels:
10+
- "fix"
11+
- "bugfix"
12+
- "bug"
13+
- title: "🧰 Maintenance"
14+
labels:
15+
- "chore"
16+
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
17+
template: |
18+
## Changes
19+
20+
$CHANGES

.github/workflows/ci.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
name: CI
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
name: CI
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Environment debug
14+
run: |
15+
env
16+
- name: Install bazelisk
17+
run: |
18+
sudo wget -O /usr/local/bin/bazel https://github.com/bazelbuild/bazelisk/releases/download/v1.3.0/bazelisk-linux-amd64
19+
sudo chmod +x /usr/local/bin/bazel
20+
- name: Check out code into the Go module directory
21+
uses: actions/checkout@v2
22+
with:
23+
token: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
24+
ref: ${{ github.head_ref }}
25+
- name: bazel build
26+
run: bazel run :install
27+
- name: Sync Dependencies
28+
run: bazel run //:vendor
29+
if: github.actor == 'dependabot-preview[bot]'
30+
- name: Test
31+
run: bazel test //...
32+
- name: autocommit
33+
uses: stefanzweifel/[email protected]
34+
with:
35+
commit_message: Apply syncdeps changes
36+
branch: ${{ github.head_ref }}
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
39+
if: github.actor == 'dependabot-preview[bot]'
40+
- name: Set up Go
41+
uses: actions/setup-go@master
42+
with:
43+
go-version: 1.14
44+
- name: dry run goreleaser
45+
uses: goreleaser/goreleaser-action@master
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
48+
with:
49+
version: latest
50+
args: release --snapshot --skip-publish

.github/workflows/lint.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: lint reviewdog
2+
on: [pull_request]
3+
jobs:
4+
shellcheck:
5+
name: runner / shellcheck
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v1
9+
- name: shellcheck
10+
uses: reviewdog/action-shellcheck@v1
11+
with:
12+
github_token: ${{ secrets.github_token }}
13+
reporter: github-pr-review # Change reporter.
14+
path: "." # Optional.
15+
pattern: "*.sh" # Optional.
16+
exclude: "./.git/*" # Optional.
17+
golangci-lint:
18+
name: runner / golangci-lint
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Check out code into the Go module directory
22+
uses: actions/checkout@v1
23+
- name: golangci-lint
24+
uses: reviewdog/action-golangci-lint@v1
25+
with:
26+
reporter: github-pr-review
27+
github_token: ${{ secrets.github_token }}
28+
config: .golangci.yml
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Release Draft Management
2+
3+
on:
4+
push:
5+
# branches to consider in the event; optional, defaults to all
6+
branches:
7+
- master
8+
9+
jobs:
10+
update_draft_release:
11+
runs-on: ubuntu-latest
12+
steps:
13+
# Drafts your next Release notes as Pull Requests are merged into "master"
14+
- uses: release-drafter/[email protected]
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: GoReleaser
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Set up Go
12+
uses: actions/setup-go@master
13+
with:
14+
go-version: 1.14
15+
- name: Install bazelisk
16+
run: |
17+
sudo wget -O /usr/local/bin/bazel https://github.com/bazelbuild/bazelisk/releases/download/v1.3.0/bazelisk-linux-amd64
18+
sudo chmod +x /usr/local/bin/bazel
19+
- name: Check out code
20+
uses: actions/checkout@master
21+
- name: stamp version
22+
run: |
23+
export VERSION=$(echo $GITHUB_REF|sed 's/refs\/tags\/v//')
24+
echo "VERSION = '$VERSION'" > version.bzl
25+
- name: bazel build
26+
run : bazel run :install
27+
- name: clean working tree
28+
run: |
29+
git checkout -- version.bzl
30+
- name: Run goreleaser
31+
uses: goreleaser/goreleaser-action@master
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
34+
with:
35+
version: latest
36+
args: release

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
vbs
2+
bazel-bin
3+
bazel-vbs
4+
bazel-out
5+
bazel-testlogs
6+
bazel-workspace
7+
bdist
8+
dist
9+
.vscode/
10+
*.mp4

0 commit comments

Comments
 (0)