Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

Commit

Permalink
Release snap package
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Vilgelm committed May 18, 2020
1 parent acbaaf2 commit 754ca23
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v1
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO }}
- name: Checkout code
uses: actions/checkout@v1
uses: actions/checkout@v2
- name: nancy
uses: sonatype-nexus-community/nancy-github-action@master
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v1
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO }}
- name: Checkout code
uses: actions/checkout@v1
uses: actions/checkout@v2
- name: unittests
run: go test -race -cover -coverprofile=coverage.txt -covermode=atomic -cpu 1,2 -bench . -benchmem ./... > test.log
- name: Show log
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v1
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO }}
- uses: actions/checkout@v2
Expand All @@ -37,11 +37,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v1
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO }}
- name: Checkout code
uses: actions/checkout@v1
uses: actions/checkout@v2
- name: Prepare gpg
run: |
gpgconf --kill gpg-agent
Expand All @@ -56,6 +56,14 @@ jobs:
run: >-
echo "${{ secrets.DOCKER_HUB_TOKEN }}"
| docker login -u svtools --password-stdin
- name: Install Snapcraft
run: |
sudo apt-get -yq --no-install-suggests --no-install-recommends install snapcraft
- name: Snapcraft Login
env:
SNAPCRAFT_LOGIN: ${{ secrets.SNAPCRAFT_LOGIN }}
run: |
snapcraft login --with <(echo "$SNAPCRAFT_LOGIN")
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
Expand Down
15 changes: 14 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,19 @@ brews:
name: homebrew-apps
folder: Formula
homepage: https://github.com/sv-tools/grade
description: grade transforms Go benchmark data into various format so that you can uploads the data to a database and track the performance over time.
description: |
grade transforms Go benchmark data into various formats
then it can upload the data to a database to track the performance over time.
install: bin.install "grade"
test: assert_equal `#{bin}/grade --version`, "grade version v#{version}"

snapcrafts:
- name_template: "{{ .ProjectName }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}"
summary: grade transforms Go benchmark data into various formats
description: |
grade transforms Go benchmark data into various formats
then it can upload the data to a database to track the performance over time.
grade: stable
confinement: strict
publish: true
license: MIT
16 changes: 9 additions & 7 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
Copyright 2017 InfluxData, Inc.
MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
Copyright (c) 2019 Sergey Vilgelm

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
Expand Down
3 changes: 3 additions & 0 deletions assets/icons/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Icons

Icons made by <a href="https://www.flaticon.com/free-icon/web_2419366" title="catkuro">catkuro</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a>
Binary file added assets/icons/grade.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icons/grade.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 754ca23

Please sign in to comment.