Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add github folder with dependabot and ci workflow #2

Merged
merged 1 commit into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: gomod
directory: /
schedule:
interval: daily
open-pull-requests-limit: 10

- package-ecosystem: "github-actions"
directory: /
schedule:
interval: daily
open-pull-requests-limit: 10
74 changes: 74 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: CI

on:
pull_request:
workflow_dispatch:
push:
branches:
- main

jobs:
golangci-lint:
name: runner / golangci-lint
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v2

yamllint:
name: runner / yamllint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: reviewdog/action-yamllint@v1
with:
fail_on_error: true
reporter: github-pr-review
yamllint_flags: '-d "{extends: default, rules: {truthy: disable}}" .'

check-dependencies:
name: runner / check-dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version: 1.23

# - name: WriteGoList
# run: go list -json -mod=vendor cmd/grpc_server/main.go > go.list

# - name: Nancy
# uses: sonatype-nexus-community/nancy-github-action@main
# continue-on-error: true

# test:
# name: runner / test
# needs: [golangci-lint, yamllint, hadolint, dotenv-linter, check-dependencies]
# runs-on: ubuntu-latest
# container: golang:1.23-alpine
# services:
# db:
# image: postgres:16-alpine
# env:
# TZ: UTC
# POSTGRES_USER: testuser
# POSTGRES_PASSWORD: testpass
# POSTGRES_DB: testdb
# options: >-
# --health-cmd pg_isready
# --health-interval 10s
# --health-timeout 5s
# --health-retries 5
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-go@v5
# with:
# go-version: 1.23
# - name: Test
# run: go test -v ./...
# env:
# APP_DATABASE_DSN: postgres://testuser:testpass@db:5432/testdb?sslmode=disable
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
[![Go Report Card](https://goreportcard.com/badge/github.com/Arlandaren/pgxWrappy)](https://goreportcard.com/report/github.com/Arlandaren/pgxWrappy)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Go Version](https://img.shields.io/github/go-mod/go-version/Arlandaren/pgxWrappy)](https://golang.org/)
[![GitHub Stars](https://img.shields.io/github/stars/Arlandaren/pgxWrappy.svg?style=social&label=Star)](https://github.com/Arlandaren/pgxWrappy)
[![GitHub Forks](https://img.shields.io/github/forks/Arlandaren/pgxWrappy.svg?style=social&label=Fork)](https://github.com/Arlandaren/pgxWrappy)
[![Issues](https://img.shields.io/github/issues/Arlandaren/pgxWrappy)](https://github.com/Arlandaren/pgxWrappy/issues)
[![GitHub Last Commit](https://img.shields.io/github/last-commit/Arlandaren/pgxWrappy)](https://github.com/Arlandaren/pgxWrappy/commits/main)
[![GitHub Contributors](https://img.shields.io/github/contributors/Arlandaren/pgxWrappy)](https://github.com/Arlandaren/pgxWrappy/graphs/contributors)
[![Repo Size](https://img.shields.io/github/repo-size/Arlandaren/pgxWrappy)](https://github.com/Arlandaren/pgxWrappy)
[![GitHub Stars](https://img.shields.io/github/stars/Arlandaren/pgxWrappy.svg?style=social&label=Star)](https://github.com/Arlandaren/pgxWrappy)
[![GitHub Forks](https://img.shields.io/github/forks/Arlandaren/pgxWrappy.svg?style=social&label=Fork)](https://github.com/Arlandaren/pgxWrappy)

### PostgreSQL Wrapper Library for Convenient Scanning of Nested Structures

Expand Down
Loading