Skip to content

Commit fd8a299

Browse files
committed
feat: create golangci-lint setup action
0 parents  commit fd8a299

File tree

179 files changed

+13722
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

179 files changed

+13722
-0
lines changed

.gitignore

Lines changed: 297 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,297 @@
1+
2+
# Created by https://www.gitignore.io/api/node,linux,macos,windows,jetbrains,sublimetext,visualstudiocode
3+
# Edit at https://www.gitignore.io/?templates=node,linux,macos,windows,jetbrains,sublimetext,visualstudiocode
4+
5+
### JetBrains ###
6+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
7+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
8+
9+
# User-specific stuff
10+
.idea/**/workspace.xml
11+
.idea/**/tasks.xml
12+
.idea/**/usage.statistics.xml
13+
.idea/**/dictionaries
14+
.idea/**/shelf
15+
16+
# Generated files
17+
.idea/**/contentModel.xml
18+
19+
# Sensitive or high-churn files
20+
.idea/**/dataSources/
21+
.idea/**/dataSources.ids
22+
.idea/**/dataSources.local.xml
23+
.idea/**/sqlDataSources.xml
24+
.idea/**/dynamic.xml
25+
.idea/**/uiDesigner.xml
26+
.idea/**/dbnavigator.xml
27+
28+
# Gradle
29+
.idea/**/gradle.xml
30+
.idea/**/libraries
31+
32+
# Gradle and Maven with auto-import
33+
# When using Gradle or Maven with auto-import, you should exclude module files,
34+
# since they will be recreated, and may cause churn. Uncomment if using
35+
# auto-import.
36+
# .idea/modules.xml
37+
# .idea/*.iml
38+
# .idea/modules
39+
# *.iml
40+
# *.ipr
41+
42+
# CMake
43+
cmake-build-*/
44+
45+
# Mongo Explorer plugin
46+
.idea/**/mongoSettings.xml
47+
48+
# File-based project format
49+
*.iws
50+
51+
# IntelliJ
52+
out/
53+
54+
# mpeltonen/sbt-idea plugin
55+
.idea_modules/
56+
57+
# JIRA plugin
58+
atlassian-ide-plugin.xml
59+
60+
# Cursive Clojure plugin
61+
.idea/replstate.xml
62+
63+
# Crashlytics plugin (for Android Studio and IntelliJ)
64+
com_crashlytics_export_strings.xml
65+
crashlytics.properties
66+
crashlytics-build.properties
67+
fabric.properties
68+
69+
# Editor-based Rest Client
70+
.idea/httpRequests
71+
72+
# Android studio 3.1+ serialized cache file
73+
.idea/caches/build_file_checksums.ser
74+
75+
### JetBrains Patch ###
76+
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
77+
78+
# *.iml
79+
# modules.xml
80+
# .idea/misc.xml
81+
# *.ipr
82+
83+
# Sonarlint plugin
84+
.idea/**/sonarlint/
85+
86+
# SonarQube Plugin
87+
.idea/**/sonarIssues.xml
88+
89+
# Markdown Navigator plugin
90+
.idea/**/markdown-navigator.xml
91+
.idea/**/markdown-navigator/
92+
93+
### Linux ###
94+
*~
95+
96+
# temporary files which can be created if a process still has a handle open of a deleted file
97+
.fuse_hidden*
98+
99+
# KDE directory preferences
100+
.directory
101+
102+
# Linux trash folder which might appear on any partition or disk
103+
.Trash-*
104+
105+
# .nfs files are created when an open file is removed but is still being accessed
106+
.nfs*
107+
108+
### macOS ###
109+
# General
110+
.DS_Store
111+
.AppleDouble
112+
.LSOverride
113+
114+
# Icon must end with two \r
115+
Icon
116+
117+
# Thumbnails
118+
._*
119+
120+
# Files that might appear in the root of a volume
121+
.DocumentRevisions-V100
122+
.fseventsd
123+
.Spotlight-V100
124+
.TemporaryItems
125+
.Trashes
126+
.VolumeIcon.icns
127+
.com.apple.timemachine.donotpresent
128+
129+
# Directories potentially created on remote AFP share
130+
.AppleDB
131+
.AppleDesktop
132+
Network Trash Folder
133+
Temporary Items
134+
.apdisk
135+
136+
### Node ###
137+
# Logs
138+
logs
139+
*.log
140+
npm-debug.log*
141+
yarn-debug.log*
142+
yarn-error.log*
143+
lerna-debug.log*
144+
145+
# Diagnostic reports (https://nodejs.org/api/report.html)
146+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
147+
148+
# Runtime data
149+
pids
150+
*.pid
151+
*.seed
152+
*.pid.lock
153+
154+
# Directory for instrumented libs generated by jscoverage/JSCover
155+
lib-cov
156+
157+
# Coverage directory used by tools like istanbul
158+
coverage
159+
*.lcov
160+
161+
# nyc test coverage
162+
.nyc_output
163+
164+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
165+
.grunt
166+
167+
# Bower dependency directory (https://bower.io/)
168+
bower_components
169+
170+
# node-waf configuration
171+
.lock-wscript
172+
173+
# Compiled binary addons (https://nodejs.org/api/addons.html)
174+
build/Release
175+
176+
# Dependency directories
177+
jspm_packages/
178+
179+
# TypeScript v1 declaration files
180+
typings/
181+
182+
# TypeScript cache
183+
*.tsbuildinfo
184+
185+
# Optional npm cache directory
186+
.npm
187+
188+
# Optional eslint cache
189+
.eslintcache
190+
191+
# Optional REPL history
192+
.node_repl_history
193+
194+
# Output of 'npm pack'
195+
*.tgz
196+
197+
# Yarn Integrity file
198+
.yarn-integrity
199+
200+
# dotenv environment variables file
201+
.env
202+
.env.test
203+
204+
# parcel-bundler cache (https://parceljs.org/)
205+
.cache
206+
207+
# next.js build output
208+
.next
209+
210+
# nuxt.js build output
211+
.nuxt
212+
213+
# react / gatsby
214+
public/
215+
216+
# vuepress build output
217+
.vuepress/dist
218+
219+
# Serverless directories
220+
.serverless/
221+
222+
# FuseBox cache
223+
.fusebox/
224+
225+
# DynamoDB Local files
226+
.dynamodb/
227+
228+
### SublimeText ###
229+
# Cache files for Sublime Text
230+
*.tmlanguage.cache
231+
*.tmPreferences.cache
232+
*.stTheme.cache
233+
234+
# Workspace files are user-specific
235+
*.sublime-workspace
236+
237+
# Project files should be checked into the repository, unless a significant
238+
# proportion of contributors will probably not be using Sublime Text
239+
# *.sublime-project
240+
241+
# SFTP configuration file
242+
sftp-config.json
243+
244+
# Package control specific files
245+
Package Control.last-run
246+
Package Control.ca-list
247+
Package Control.ca-bundle
248+
Package Control.system-ca-bundle
249+
Package Control.cache/
250+
Package Control.ca-certs/
251+
Package Control.merged-ca-bundle
252+
Package Control.user-ca-bundle
253+
oscrypto-ca-bundle.crt
254+
bh_unicode_properties.cache
255+
256+
# Sublime-github package stores a github token in this file
257+
# https://packagecontrol.io/packages/sublime-github
258+
GitHub.sublime-settings
259+
260+
### VisualStudioCode ###
261+
.vscode/*
262+
!.vscode/settings.json
263+
!.vscode/tasks.json
264+
!.vscode/launch.json
265+
!.vscode/extensions.json
266+
267+
### VisualStudioCode Patch ###
268+
# Ignore all local history of files
269+
.history
270+
271+
### Windows ###
272+
# Windows thumbnail cache files
273+
Thumbs.db
274+
Thumbs.db:encryptable
275+
ehthumbs.db
276+
ehthumbs_vista.db
277+
278+
# Dump file
279+
*.stackdump
280+
281+
# Folder config file
282+
[Dd]esktop.ini
283+
284+
# Recycle Bin used on file shares
285+
$RECYCLE.BIN/
286+
287+
# Windows Installer files
288+
*.cab
289+
*.msi
290+
*.msix
291+
*.msm
292+
*.msp
293+
294+
# Windows shortcuts
295+
*.lnk
296+
297+
# End of https://www.gitignore.io/api/node,linux,macos,windows,jetbrains,sublimetext,visualstudiocode

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# action-setup-golangci-lint
2+
Install [golangci/golangci-lint](https://github.com/golangci/golangci-lint) for workflows.
3+
4+
golangci-lint is downloaded and added to the tools cache for reuse across jobs/steps in a workflow.
5+
6+
## Inputs
7+
Only one input is needed: `version`. This must be a semantic version, matching a released version of golangci-lint.

action.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: 'Setup golangci-lint Action'
2+
description: 'Downloads and installs the golangci-lint tool'
3+
branding:
4+
icon: check-circle
5+
color: green
6+
inputs:
7+
version:
8+
required: true
9+
description: 'Version of golangci-lint to install'
10+
runs:
11+
using: 'node12'
12+
main: 'src/index.js'

node_modules/.bin/semver

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/uuid

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)