Skip to content

Commit

Permalink
release(0.4.1): merge develop into master
Browse files Browse the repository at this point in the history
  • Loading branch information
kscarlett committed Feb 1, 2020
2 parents 81e92c6 + ccc058a commit baf1d67
Show file tree
Hide file tree
Showing 22 changed files with 498 additions and 46 deletions.
5 changes: 0 additions & 5 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug, needs-grooming
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. Windows]
- OS version:
- `go env` output:
```
here
```
- Hussar version [e.g. 0.4.2]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: feature, needs-grooming
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
Binary file removed .github/hussar.png
Binary file not shown.
13 changes: 13 additions & 0 deletions .github/no-response.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Configuration for probot-no-response - https://github.com/probot/no-response

# Number of days of inactivity before an Issue is closed for lack of response
daysUntilClose: 14
# Label requiring a response
responseRequiredLabel: triage/more-information-needed
# Comment to post when closing an Issue for lack of response. Set to `false` to disable
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.
6 changes: 6 additions & 0 deletions .github/pr-type-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind/bug: ["fix/*", "bug/*"]
kind/cleanup: ["cleanup/*", "chore/*"]
kind/feature: ["feature/*", "feat/*"]
kind/documentation: ["documentation/*", "docs/*"]
kind/design: design/*
kind/api-change: ["*breaking*"]
18 changes: 18 additions & 0 deletions .github/workflows/go-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
on: [push, pull_request]
name: go-ci
jobs:
test:
strategy:
matrix:
go-version: [1.13.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test ./...
14 changes: 14 additions & 0 deletions .github/workflows/go-linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: reviewdog-go
on: [pull_request]
jobs:
golangci-lint:
name: runner / golangci-lint
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v1
with:
github_token: ${{ secrets.github_token }}
golangci_lint_flags: "--enable-all --exclude-use-default=false"
27 changes: 27 additions & 0 deletions .github/workflows/go-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: goreleaser

on:
push:
tags:
- "*"

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Unshallow
run: git fetch --prune --unshallow
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13.x
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
version: latest
args: release --rm-dist
key: ${{ secrets.YOUR_PRIVATE_KEY }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16 changes: 16 additions & 0 deletions .github/workflows/reviewdog-shellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# For helper scripts
name: reviewdog-sh
on: [pull_request]
jobs:
shellcheck:
name: runner / shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: shellcheck
uses: reviewdog/action-shellcheck@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
pattern: "*.sh" # Optional.
exclude: "./.git/*"
10 changes: 10 additions & 0 deletions .github/workflows/size-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: size-label
on: pull_request
jobs:
size-label:
runs-on: ubuntu-latest
steps:
- name: size-label
uses: "pascalgn/size-label-action@d909487e1a0057d85c638f1ddefdb315a63d2e98"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
14 changes: 14 additions & 0 deletions .github/workflows/type-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: type-label
on:
pull_request:
types: [opened]

jobs:
pr-labeler:
runs-on: ubuntu-latest
steps:
- uses: TimonVS/pr-labeler-action@v3
with:
configuration-path: .github/pr-type-labeler.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*.so
*.dylib
bin/
dist/

# Test binary, build with `go test -c`
*.test
Expand All @@ -20,8 +21,10 @@ coverage.out
# Golang project vendor packages which should be ignored
vendor/

### MISC ###
# Generated to-do files
*.todo

### Hussar ###
# Compiled Hussar libraries (WIP)
*.hsc
111 changes: 111 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
project_name: hussar

before:
hooks:
- go mod tidy
- go generate ./...

builds:
- env:
- CGO_ENABLED=0
id: "hussar-compiler"
main: ./main.go # should be ./cmd/interpreter/main.go after tooling change
binary: hussar
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm
- arm64
goarm:
- 6
- 7

brews:
- # GOARM to specify which 32-bit arm version to use if there are multiple versions
# from the build section. Brew formulas support atm only one 32-bit version.
# Default is 6 for all artifacts or each id if there a multiple versions.
goarm: 6

# Github repository to push the tap to.
github:
owner: hussar-lang
name: homebrew-tap

url_template: "https://github.com/hussar-lang/hussar/releases/download/{{ .Tag }}/{{ .ArtifactName }}"

# Git author used to commit to the repository.
commit_author:
name: goreleaserbot
email: [email protected]

# Folder inside the repository to put the formula.
# Default is the root folder.
folder: Formula

# Caveats for the user of your binary.
# Default is empty.
caveats: "How to use this binary"

homepage: "https://hussar.io/"

description: "Interpreter and tooling for the Hussar programming language."
# If set to auto, the release will not be uploaded to the homebrew tap
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
# Default is false.
skip_upload: auto

# Custom block for brew.
# Can be used to specify alternate downloads for devel or head releases.
# Default is empty.
custom_block: |
head "https://github.com/hussar-lang/hussar.git"
...
# So you can `brew test` your formula.
# Default is empty.
test: |
system "#{bin}/hussar env"
...
archives:
- replacements:
darwin: MacOS
linux: Linux
windows: Windows
amd64: x84_64
wrap_in_directory: true
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
- CHANGELOG.md # should generate this
- examples/*
- assets/*

checksum:
name_template: "checksums.txt"

snapshot:
name_template: "{{ .Tag }}-SNAPSHOT-{{ .ShortCommit }}"

release:
github:
owner: hussar-lang
name: hussar
prerelease: auto
name_template: "{{.Tag}}"

changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^build:"
- "^cleanup:"
- typo"
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

Empty file added CHANGELOG.md
Empty file.
Loading

0 comments on commit baf1d67

Please sign in to comment.