Skip to content

Commit

Permalink
chore: add actions workflow (#28)
Browse files Browse the repository at this point in the history
* chore: add actions workflow

add ci workflow

* chore: add golangci-lint action; fmt

* chore: go 1.20
  • Loading branch information
markphelps committed Jul 8, 2023
1 parent e2abf76 commit a08e720
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI

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

jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-go@v3
with:
go-version: "1.20"

- uses: golangci/golangci-lint-action@v3
with:
version: v1.53

- name: "Lint & Test"
run: make ci
6 changes: 1 addition & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,16 @@ run:

linters:
enable:
- deadcode
- errcheck
- goconst
- gofmt
- goimports
- golint
- gosimple
- govet
- ineffassign
- megacheck
- misspell
- staticcheck
- structcheck
- varcheck
- unused
disable-all: true

issues:
Expand Down
1 change: 0 additions & 1 deletion cmd/optional/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
//
// The default type is OptionalT or optionalT (depending on if the type is exported)
// and output file is optional_t.go. This can be overridden with the -output flag.
//
package main

import (
Expand Down

0 comments on commit a08e720

Please sign in to comment.