Skip to content

Commit

Permalink
Setup CI (first test)
Browse files Browse the repository at this point in the history
  • Loading branch information
insyri committed Dec 24, 2023
1 parent 618e598 commit 637f1cc
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
labels:
- "dependency"
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI

on:
push:
pull_request:

jobs:
Go:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.21.5

- name: Format and Lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
working-directory: cli

- name: Build
run: go build
15 changes: 15 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
run:
timeout: 3m
issues:
fix: true
linters:
enable:
- dupl
- goconst
- gofmt
- goimports
- misspell
- nilnil
- nosnakecase
- nonamedreturns
- revive

0 comments on commit 637f1cc

Please sign in to comment.