Skip to content

Commit 7852ed0

Browse files
committed
Hello, World!
0 parents  commit 7852ed0

File tree

348 files changed

+44170
-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.

348 files changed

+44170
-0
lines changed

.github/workflows/test.yml

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
changes:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
timeout-minutes: 5
13+
outputs:
14+
any_changed: ${{ steps.files.outputs.any_changed }}
15+
go_any_changed: ${{ steps.files.outputs.go_any_changed }}
16+
actions_any_changed: ${{ steps.files.outputs.actions_any_changed }}
17+
md_any_changed: ${{ steps.files.outputs.md_any_changed }}
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
21+
with:
22+
persist-credentials: false
23+
fetch-depth: 0
24+
25+
- name: Run changes
26+
id: files
27+
uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.5
28+
with:
29+
files_yaml: |
30+
md:
31+
- '**.md'
32+
go:
33+
- '**.go'
34+
- go.mod
35+
actions:
36+
- .github/workflows/**.yml
37+
- .github/workflows/**.yaml
38+
39+
actionlint:
40+
runs-on: ubuntu-latest
41+
needs: changes
42+
if: needs.changes.outputs.actions_any_changed == 'true'
43+
permissions:
44+
contents: read
45+
timeout-minutes: 5
46+
steps:
47+
- name: Checkout code
48+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
49+
with:
50+
persist-credentials: false
51+
52+
- uses: aquaproj/aqua-installer@d1fe50798dbadd4eb5b98957290ca175f6b4870f # v4.0.2
53+
with:
54+
aqua_version: v2.53.9
55+
56+
- name: Run actionlint
57+
run: actionlint
58+
59+
- name: Run ghalint
60+
run: ghalint run
61+
62+
go-test:
63+
runs-on: ubuntu-latest
64+
needs: changes
65+
if: needs.changes.outputs.go_any_changed == 'true'
66+
permissions:
67+
contents: read
68+
timeout-minutes: 5
69+
steps:
70+
- name: Checkout code
71+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
72+
with:
73+
persist-credentials: false
74+
75+
- name: Install Go
76+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
77+
with:
78+
go-version-file: go.mod
79+
80+
- name: Run tests
81+
run: go test ./...
82+
83+
md-test:
84+
runs-on: ubuntu-latest
85+
needs: changes
86+
if: needs.changes.outputs.md_any_changed == 'true'
87+
permissions:
88+
contents: read
89+
timeout-minutes: 5
90+
steps:
91+
- name: Checkout code
92+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
93+
with:
94+
persist-credentials: false
95+
96+
- uses: aquaproj/aqua-installer@d1fe50798dbadd4eb5b98957290ca175f6b4870f # v4.0.2
97+
with:
98+
aqua_version: v2.53.9
99+
100+
- name: Install dependencies
101+
run: npm ci
102+
103+
- name: Tests
104+
run: npm run md-test
105+
106+
test-no-need:
107+
name: Empty
108+
runs-on: ubuntu-latest
109+
needs: changes
110+
if: needs.changes.outputs.any_changed == 'false'
111+
permissions:
112+
contents: read
113+
timeout-minutes: 5
114+
steps:
115+
- name: Skip
116+
run: echo "No changes in files related to tests, skipping."

.gitignore

Lines changed: 179 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
1+
.env
2+
/tmp
3+
**/testdata/rapid
4+
**/testdata/fuzz
5+
6+
*.fail
7+
# Created by https://www.toptal.com/developers/gitignore/api/node
8+
# Edit at https://www.toptal.com/developers/gitignore?templates=node
9+
10+
### Node ###
11+
# Logs
12+
logs
13+
*.log
14+
npm-debug.log*
15+
yarn-debug.log*
16+
yarn-error.log*
17+
lerna-debug.log*
18+
.pnpm-debug.log*
19+
20+
# Diagnostic reports (https://nodejs.org/api/report.html)
21+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
22+
23+
# Runtime data
24+
pids
25+
*.pid
26+
*.seed
27+
*.pid.lock
28+
29+
# Directory for instrumented libs generated by jscoverage/JSCover
30+
lib-cov
31+
32+
# Coverage directory used by tools like istanbul
33+
coverage
34+
*.lcov
35+
36+
# nyc test coverage
37+
.nyc_output
38+
39+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
40+
.grunt
41+
42+
# Bower dependency directory (https://bower.io/)
43+
bower_components
44+
45+
# node-waf configuration
46+
.lock-wscript
47+
48+
# Compiled binary addons (https://nodejs.org/api/addons.html)
49+
build/Release
50+
51+
# Dependency directories
52+
node_modules/
53+
jspm_packages/
54+
55+
# Snowpack dependency directory (https://snowpack.dev/)
56+
web_modules/
57+
58+
# TypeScript cache
59+
*.tsbuildinfo
60+
61+
# Optional npm cache directory
62+
.npm
63+
64+
# Optional eslint cache
65+
.eslintcache
66+
67+
# Optional stylelint cache
68+
.stylelintcache
69+
70+
# Microbundle cache
71+
.rpt2_cache/
72+
.rts2_cache_cjs/
73+
.rts2_cache_es/
74+
.rts2_cache_umd/
75+
76+
# Optional REPL history
77+
.node_repl_history
78+
79+
# Output of 'npm pack'
80+
*.tgz
81+
82+
# Yarn Integrity file
83+
.yarn-integrity
84+
85+
# dotenv environment variable files
86+
.env
87+
.env.development.local
88+
.env.test.local
89+
.env.production.local
90+
.env.local
91+
92+
# parcel-bundler cache (https://parceljs.org/)
93+
.cache
94+
.parcel-cache
95+
96+
# Next.js build output
97+
.next
98+
out
99+
100+
# Nuxt.js build / generate output
101+
.nuxt
102+
dist
103+
104+
# Gatsby files
105+
.cache/
106+
# Comment in the public line in if your project uses Gatsby and not Next.js
107+
# https://nextjs.org/blog/next-9-1#public-directory-support
108+
# public
109+
110+
# vuepress build output
111+
.vuepress/dist
112+
113+
# vuepress v2.x temp and cache directory
114+
.temp
115+
116+
# Docusaurus cache and generated files
117+
.docusaurus
118+
119+
# Serverless directories
120+
.serverless/
121+
122+
# FuseBox cache
123+
.fusebox/
124+
125+
# DynamoDB Local files
126+
.dynamodb/
127+
128+
# TernJS port file
129+
.tern-port
130+
131+
# Stores VSCode versions used for testing VSCode extensions
132+
.vscode-test
133+
134+
# yarn v2
135+
.yarn/cache
136+
.yarn/unplugged
137+
.yarn/build-state.yml
138+
.yarn/install-state.gz
139+
.pnp.*
140+
141+
### Node Patch ###
142+
# Serverless Webpack directories
143+
.webpack/
144+
145+
# Optional stylelint cache
146+
147+
# SvelteKit build / generate output
148+
.svelte-kit
149+
150+
# End of https://www.toptal.com/developers/gitignore/api/node
151+
# Created by https://www.toptal.com/developers/gitignore/api/go
152+
# Edit at https://www.toptal.com/developers/gitignore?templates=go
153+
154+
### Go ###
155+
# If you prefer the allow list template instead of the deny list, see community template:
156+
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
157+
#
158+
# Binaries for programs and plugins
159+
*.exe
160+
*.exe~
161+
*.dll
162+
*.so
163+
*.dylib
164+
165+
# Test binary, built with `go test -c`
166+
*.test
167+
168+
# Output of the go coverage tool, specifically when used with LiteIDE
169+
*.out
170+
171+
# Dependency directories (remove the comment below to include it)
172+
# vendor/
173+
174+
# Go workspace file
175+
go.work
176+
177+
# End of https://www.toptal.com/developers/gitignore/api/go
178+
# Added by goreleaser init:
179+
dist/

0 commit comments

Comments
 (0)