Skip to content

Commit

Permalink
chore: add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tmzane committed Apr 23, 2024
1 parent abf15d6 commit 15f883e
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: checks

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
test:
uses: go-simpler/.github/.github/workflows/test.yml@main
with:
packages: '.' # ignore `internal/assert`
lint:
uses: go-simpler/.github/.github/workflows/lint.yml@main
vuln:
uses: go-simpler/.github/.github/workflows/vuln.yml@main
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: release

on:
push:
tags: [ 'v[0-9]+.[0-9]+.[0-9]+' ]
workflow_dispatch:
inputs:
version:
type: string
required: true
description: The next semantic version to release

jobs:
release:
uses: go-simpler/.github/.github/workflows/release.yml@main
with:
version: ${{ github.event_name == 'push' && github.ref_name || inputs.version }}
22 changes: 22 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
linters:
disable-all: true
enable:
# enabled by default:
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- unused
# disabled by default:
- gocritic
- gofumpt

linters-settings:
gocritic:
enabled-tags:
- diagnostic
- style
- performance
- experimental
- opinionated
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# queries

[![checks](https://github.com/go-simpler/queries/actions/workflows/checks.yml/badge.svg)](https://github.com/go-simpler/queries/actions/workflows/checks.yml)
[![pkg.go.dev](https://pkg.go.dev/badge/go-simpler.org/queries.svg)](https://pkg.go.dev/go-simpler.org/queries)
[![goreportcard](https://goreportcard.com/badge/go-simpler.org/queries)](https://goreportcard.com/report/go-simpler.org/queries)
[![codecov](https://codecov.io/gh/go-simpler/queries/branch/main/graph/badge.svg)](https://codecov.io/gh/go-simpler/queries)

[WIP] Convenience helpers for working with SQL queries.

## Features
Expand Down

0 comments on commit 15f883e

Please sign in to comment.