Skip to content

Commit

Permalink
chore: Change TravisCI to Github actions and deprecate Go 1.7, 1.8, 1…
Browse files Browse the repository at this point in the history
….9, 1.10 and 1.11
  • Loading branch information
Sergio Andres Virviescas Santana committed Sep 7, 2021
1 parent 5edde9f commit ccf799c
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 45 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
go-version: [1.12.x, 1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- run: go version
- run: go get -t -v ./...
- run: GOOS=linux go build
- run: GOOS=darwin go build
- run: GOOS=freebsd go build
- run: GOOS=windows go build
- run: GOARCH=386 go build
10 changes: 10 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Lint
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: golangci/golangci-lint-action@v2
with:
version: v1.42.1
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Test
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
go-version: [1.12.x, 1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- run: go version
- run: go get -t -v ./...
- run: go test -v -cover -race ./...
43 changes: 0 additions & 43 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
@@ -1,6 +1,6 @@
# gotils

[![Build Status](https://travis-ci.org/savsgio/gotils.svg?branch=master)](https://travis-ci.org/savsgio/gotils)
[![Test status](https://github.com/savsgio/gotils/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/savsgio/gotils/actions?workflow=test)
[![Go Report Card](https://goreportcard.com/badge/github.com/savsgio/gotils)](https://goreportcard.com/report/github.com/savsgio/gotils)
[![GoDev](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white)](https://pkg.go.dev/github.com/savsgio/gotils)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/savsgio/gotils

go 1.11
go 1.12

require (
github.com/google/uuid v1.2.0
Expand Down

0 comments on commit ccf799c

Please sign in to comment.