Skip to content

Commit

Permalink
Merge pull request #3 from jkawamoto/ci
Browse files Browse the repository at this point in the history
Set up CI
  • Loading branch information
jkawamoto authored Apr 15, 2023
2 parents 7447f44 + a758b65 commit 5cf0971
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 3 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: OpenAPI client library

on:
push:
branches:
- main
pull_request:

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# - uses: actions/setup-python@v4
- uses: pre-commit/[email protected]
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,3 @@

# Dependency directories (remove the comment below to include it)
# vendor/


17 changes: 17 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-merge-conflict
- id: check-yaml
- id: check-toml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/APIDevTools/swagger-cli/
rev: v4.0.4
hooks:
- id: swagger-validation
- repo: https://github.com/golangci/golangci-lint
rev: v1.52.2
hooks:
- id: golangci-lint
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Civitai API client
[![OpenAPI client library](https://github.com/jkawamoto/go-civitai/actions/workflows/ci.yaml/badge.svg)](https://github.com/jkawamoto/go-civitai/actions/workflows/ci.yaml)
[![GoDoc](https://pkg.go.dev/badge/github.com/jkawamoto/go-civitai)](https://pkg.go.dev/github.com/jkawamoto/go-civitai)

A [Civitai API](https://github.com/civitai/civitai/wiki/REST-API-Reference) client generated by
A [Civitai API](https://github.com/civitai/civitai/wiki/REST-API-Reference) client generated by
[go-swagger](https://github.com/go-swagger/go-swagger).

## Installation
Expand Down

0 comments on commit 5cf0971

Please sign in to comment.