Skip to content

Commit

Permalink
⚒️ Add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
bullshitsoftware committed Jul 1, 2022
1 parent 58b5049 commit 6b1dc0f
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: ci

on:
push:
branches:
pull_request:

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: set up go
uses: actions/setup-go@v2
with:
go-version: 1.18

- name: checkout
uses: actions/checkout@v3

- name: test
run: go test -v -covermode count -coverprofile profile.out

- name: convert coverage
uses: jandelgado/gcov2lcov-action@v1
with:
infile: profile.out
outfile: profile.lcov

- name: send coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: profile.lcov
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: release

on:
push:
tags:
- '*'

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: set up go
uses: actions/setup-go@v2
with:
go-version: 1.18

- name: checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: release
uses: goreleaser/goreleaser-action@v3
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12 changes: 12 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
project_name: youtimetrack
builds:
- id: youtimetrack
binary: youtimetrack
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm
- arm64

0 comments on commit 6b1dc0f

Please sign in to comment.