Skip to content

Commit

Permalink
Merge pull request #11 from VividCortex/go-mod
Browse files Browse the repository at this point in the history
- Init Go modules
- Update GitHub Actions build workflow
  • Loading branch information
pmatseykanets authored Apr 26, 2021
2 parents 4c396ae + a3a4a39 commit 69f897f
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 26 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: build

on:
push:
branches:
- master
paths-ignore:
- .github/**
- .gitignore
- .whitesource
- codecov.yml
- README.md
pull_request:
paths-ignore:
- .github/**
- .gitignore
- .whitesource
- codecov.yml
- README.md

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- go: 1.15
build-with: true
- go: 1.16
build-with: false
continue-on-error: ${{ matrix.build-with == false }}
name: Build with ${{ matrix.go }}
env:
GO111MODULE: on

steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}

- name: Checkout code
uses: actions/checkout@v2

- name: Vet
run: go vet ./...
26 changes: 0 additions & 26 deletions .github/workflows/go.yml

This file was deleted.

3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/VividCortex/mysqlerr

go 1.12

0 comments on commit 69f897f

Please sign in to comment.