Skip to content

Commit

Permalink
Merge pull request #1 from moul/dev/moul/update-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
moul authored Jun 26, 2020
2 parents d41631a + 6550ea7 commit fa56bc4
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 194 deletions.
3 changes: 0 additions & 3 deletions .githooks/pre-commit

This file was deleted.

3 changes: 0 additions & 3 deletions .githooks/pre-commit.d/generate

This file was deleted.

53 changes: 0 additions & 53 deletions .githooks/pre-commit.d/lint

This file was deleted.

File renamed without changes.
42 changes: 4 additions & 38 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,6 @@ on:
pull_request:

jobs:
docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build . --file Dockerfile
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
- name: Cache Go modules
uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run GoReleaser (Dry Run)
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist --snapshot --skip-publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
golangci-lint:
runs-on: ubuntu-latest
steps:
Expand All @@ -50,7 +21,6 @@ jobs:
only-new-issues: false
working-directory: .
tests-on-windows:
needs: golangci-lint # run after golangci-lint action to not produce duplicated errors
runs-on: windows-latest
strategy:
matrix:
Expand All @@ -67,7 +37,6 @@ jobs:
run: make.exe unittest
continue-on-error: true
tests-on-mac:
needs: golangci-lint # run after golangci-lint action to not produce duplicated errors
runs-on: macos-latest
strategy:
matrix:
Expand All @@ -88,8 +57,8 @@ jobs:
key: ${{ runner.os }}-go-${{ matrix.golang }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ matrix.golang }}-
- name: Compile the project
run: make go.install
#- name: Compile the project
# run: make go.install
- name: Run tests on Unix-like operating systems
run: make unittest
- name: Check go.mod and go.sum
Expand All @@ -107,13 +76,10 @@ jobs:
name: codecov-umbrella
fail_ci_if_error: true
tests-on-linux:
needs: golangci-lint # run after golangci-lint action to not produce duplicated errors
runs-on: ubuntu-latest
strategy:
matrix:
golang:
- 1.11
- 1.12
- 1.13
- 1.14
env:
Expand All @@ -131,8 +97,8 @@ jobs:
key: ${{ runner.os }}-go-${{ matrix.golang }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ matrix.golang }}-
- name: Compile the project
run: make go.install
#- name: Compile the project
# run: make go.install
- name: Check go.mod and go.sum
run: |
go mod tidy -v
Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,6 @@ jobs:
uses: codfish/semantic-release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
name: Set up Go
if: steps.semantic.outputs.new-release-published == 'true'
uses: actions/setup-go@v2
with:
go-version: 1.14
-
name: Cache Go modules
if: steps.semantic.outputs.new-release-published == 'true'
uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
-
name: Run GoReleaser
if: steps.semantic.outputs.new-release-published == 'true'
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
name: Register version on pkg.go.dev
if: steps.semantic.outputs.new-release-published == 'true'
Expand Down
73 changes: 0 additions & 73 deletions .goreleaser.yml

This file was deleted.

0 comments on commit fa56bc4

Please sign in to comment.