Skip to content

Commit

Permalink
Switched to GitHub Actions, Go 1.16, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
rykov committed Jul 16, 2021
1 parent b82e494 commit c2860dd
Show file tree
Hide file tree
Showing 6 changed files with 500 additions and 180 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: release

on:
push:
tags:
- '*'

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27 changes: 27 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Cache modules
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Download modules
if: steps.cache.outputs.cache-hit != 'true'
run: go mod download
- name: Run tests
run: go test ./...
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ A Fast & Modern Email Campaign Engine built in [Go][].
[Installation Guide](https://www.paperboy.email/docs/installation/)

[![Version Badge](https://badge.fury.io/mdy/github.com%2Frykov%2Fpaperboy.svg)](https://melody.sh/github.com/rykov/paperboy)
[![Build Status](https://api.travis-ci.org/rykov/paperboy.svg?branch=master "Build Status")](https://travis-ci.org/rykov/paperboy)
[![Go Report Card](https://goreportcard.com/badge/github.com/rykov/paperboy)](https://goreportcard.com/report/github.com/rykov/paperboy)
[![Build Status](https://github.com/rykov/paperboy/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/paperboy/actions/workflows/tests.yml)

## Overview

Expand Down
36 changes: 18 additions & 18 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
module github.com/rykov/paperboy

go 1.15
go 1.16

require (
github.com/PuerkitoBio/goquery v1.5.1
github.com/PuerkitoBio/goquery v1.7.1
github.com/bep/inflect v0.0.0-20160408190323-b896c45f5af9
github.com/cenkalti/backoff/v4 v4.0.2
github.com/charmbracelet/glamour v0.2.0
github.com/cenkalti/backoff/v4 v4.1.1
github.com/charmbracelet/glamour v0.3.0
github.com/chris-ramon/douceur v0.2.0
github.com/ghodss/yaml v1.0.0
github.com/go-gomail/gomail v0.0.0-20160411212932-81ebce5c23df
github.com/go-test/deep v1.0.7 // indirect
github.com/google/go-cmp v0.5.2
github.com/graph-gophers/graphql-go v0.0.0-20201003130358-c5bdf3b1108e
github.com/jordan-wright/email v4.0.1-0.20200917010138-e1c00e156980+incompatible
github.com/google/go-cmp v0.5.5
github.com/graph-gophers/graphql-go v1.1.0
github.com/jordan-wright/email v4.0.1-0.20210109023952-943e75fe5223+incompatible
github.com/jtacoma/uritemplates v1.0.0
github.com/microcosm-cc/bluemonday v1.0.4
github.com/pelletier/go-toml v1.8.1
github.com/rs/cors v1.7.0
github.com/sirupsen/logrus v1.7.0
github.com/spf13/afero v1.4.1
github.com/microcosm-cc/bluemonday v1.0.15
github.com/pelletier/go-toml v1.9.3
github.com/rs/cors v1.8.0
github.com/sirupsen/logrus v1.8.1
github.com/spf13/afero v1.6.0
github.com/spf13/cast v1.3.1
github.com/spf13/cobra v1.0.0
github.com/spf13/viper v1.7.1
github.com/toorop/go-dkim v0.0.0-20200526084421-76378ae5207e
github.com/yuin/goldmark v1.2.1
golang.org/x/net v0.0.0-20201006153459-a7d1128ccaa0
github.com/spf13/cobra v1.2.1
github.com/spf13/viper v1.8.1
github.com/toorop/go-dkim v0.0.0-20201103131630-e1cd1a0a5208
github.com/yuin/goldmark v1.4.0
golang.org/x/net v0.0.0-20210614182718-04defd469f4e
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df // indirect
gopkg.in/yaml.v2 v2.3.0
gopkg.in/yaml.v2 v2.4.0
)
Loading

0 comments on commit c2860dd

Please sign in to comment.