Skip to content

Commit

Permalink
Refactor workflows (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
int128 committed Nov 28, 2021
1 parent 618622a commit 2b61ef8
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 27 deletions.
10 changes: 1 addition & 9 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
{
"extends": [
"config:base",
],
"packageRules": [
{
"updateTypes": ["minor", "patch", "digest"],
"automerge": true,
},
"github>int128/go-actions",
],
"regexManagers": [
{
Expand All @@ -20,7 +15,4 @@
"datasourceTemplate": "github-releases",
},
],
"postUpdateOptions": [
"gomodTidy",
],
}
44 changes: 44 additions & 0 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: go

on:
pull_request:
paths:
- .github/workflows/go.yaml
- '**.go'
- go.*
push:
branches:
- master
paths:
- .github/workflows/go.yaml
- '**.go'
- go.*

jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: int128/go-actions/setup@v1
with:
go-version: 1.17
- uses: golangci/golangci-lint-action@v2
with:
version: v1.41.1
skip-go-installation: true
skip-pkg-cache: true
skip-build-cache: true
args: --timeout=3m

test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: int128/go-actions/setup@v1
with:
go-version: 1.17
#TODO: fix the integration test
#- run: go test -v ./...
- run: go test -v ./pkg/...
18 changes: 0 additions & 18 deletions .github/workflows/golangci-lint.yaml

This file was deleted.

0 comments on commit 2b61ef8

Please sign in to comment.