Skip to content

Commit

Permalink
Use Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcnunes committed Aug 8, 2022
1 parent 1fde628 commit 90f855c
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 60 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: goreleaser

on:
push:
# run only against tags
tags:
- '*'

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Fetch all tags
run: git fetch --force --tags
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36 changes: 36 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
on:
- push
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
go:
- '1.19'
- '1.18'
- '1.17'
- '1.16'
- '1.15'
env:
OS: ${{ matrix.os }}
PYTHON: '3.7'
steps:
- uses: actions/checkout@master

- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}

- name: Lint
run: make setup && make lint

- name: Test
run: make test

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,6 @@ A single test:
go test -run TestSimplePost ./...
```

### Release

The release runs automatically with a Github action on pushed git tags.
31 changes: 0 additions & 31 deletions appveyor.yml

This file was deleted.

0 comments on commit 90f855c

Please sign in to comment.