Skip to content

Commit e57ebd8

Browse files
committed
chore: initial commit
Signed-off-by: Simon Emms <simon@simonemms.com>
0 parents  commit e57ebd8

21 files changed

Lines changed: 2618 additions & 0 deletions

‎.commitlintrc.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
extends:
2+
- "@commitlint/config-conventional"

‎.cruft.json‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"template": "https://github.com/mrsimonemms/new",
3+
"commit": "6f1459d0cc97b9a3e0fa01a996a7af83fefe02aa",
4+
"checkout": "main",
5+
"context": {
6+
"cookiecutter": {
7+
"project_name": "setup-zigflow",
8+
"description": "Set up your GitHub Actions workflow with a specific version of Zigflow",
9+
"author": "Zigflow authors <https://github.com/zigflow/setup-zigflow/graphs/contributors>",
10+
"type": "blank",
11+
"_template": "https://github.com/mrsimonemms/new",
12+
"_commit": "6f1459d0cc97b9a3e0fa01a996a7af83fefe02aa"
13+
}
14+
},
15+
"directory": "js",
16+
"skip": [
17+
".git"
18+
]
19+
}

‎.devcontainer/devcontainer.json‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"image": "ghcr.io/mrsimonemms/devcontainers/full",
3+
"name": "devcontainer",
4+
"features": {
5+
},
6+
"customizations": {
7+
"vscode": {
8+
"extensions": [
9+
"esbenp.prettier-vscode"
10+
],
11+
"settings": {}
12+
}
13+
}
14+
}

‎.editorconfig‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.go]
13+
indent_style = tab
14+
indent_size = 4
15+
16+
[Makefile]
17+
indent_style = tab
18+
indent_size = 4

‎.github/workflows/build.yml‎

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
workflow_dispatch:
10+
permissions:
11+
contents: write
12+
id-token: write
13+
packages: write
14+
pages: write
15+
pull-requests: read
16+
jobs:
17+
commitlint:
18+
runs-on: ubuntu-latest
19+
env:
20+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
21+
steps:
22+
- uses: actions/checkout@v6
23+
with:
24+
fetch-depth: 0 # fetch-depth is required
25+
26+
- uses: wagoid/commitlint-github-action@v6
27+
28+
pre-commit:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v6
32+
33+
- uses: actions/setup-python@v6
34+
with:
35+
python-version: 3.x
36+
37+
- name: Set up Go
38+
uses: actions/setup-go@v6
39+
with:
40+
go-version: ">=1.20.0"
41+
42+
- name: Set up JS
43+
uses: actions/setup-node@v6
44+
with:
45+
node-version: lts/*
46+
cache: "npm"
47+
48+
- name: Install dependencies
49+
run: npm ci
50+
51+
- uses: pre-commit/action@v3.0.1
52+
53+
test:
54+
strategy:
55+
fail-fast: true
56+
matrix:
57+
os: [ubuntu-latest, macos-latest, windows-latest]
58+
runs-on: ${{ matrix.os }}
59+
steps:
60+
- name: Print build information
61+
run: 'echo head_ref: ${{ github.head_ref }}, ref: ${{ github.ref }}, os: ${{ matrix.os }}'
62+
63+
- uses: actions/checkout@v4
64+
65+
- name: Run zigflow/setup-zigflow
66+
uses: ./
67+
68+
- name: Verify setup
69+
run: zigflow version

‎.github/workflows/stale.yml‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Close stale issues and PRs
2+
on:
3+
schedule:
4+
- cron: 0 2 * * *
5+
workflow_dispatch:
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: write
11+
issues: write
12+
pull-requests: write
13+
steps:
14+
- uses: actions/stale@v10
15+
with:
16+
days-before-stale: 60
17+
days-before-close: 7
18+
exempt-issue-labels: never-stale
19+
exempt-pr-labels: never-stale
20+
stale-issue-message: |
21+
This issue is stale because it has been open 60 days with no activity. It will be closed in 7 days if no further activity.
22+
stale-pr-message: |
23+
This PR is stale because it has been open 60 days with no activity. It will be closed in 7 days if no further activity.

‎.gitignore‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
dist
2+
tmp
3+
4+
node_modules
5+
6+
.idea
7+
.DS_Store
8+
Thumbs.db
9+
.commit
10+
.devbox
11+
.envrc
12+
13+
coverage
14+
.nyc_output
15+
16+
.claude

‎.licenserc.yaml‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
header:
2+
license:
3+
spdx-id: Apache-2.0
4+
copyright-owner: "Zigflow authors <https://github.com/zigflow/setup-zigflow/graphs/contributors>"
5+
copyright-year: 2025 - 2026
6+
paths-ignore:
7+
- "**/dist"
8+
- "**/tmp"
9+
- LICENSE
10+
- "**/.*"
11+
- "**/go.*"
12+
- "**/*.{json,md,yml,yaml}"
13+
- "**/.gitkeep"
14+
comment: on-failure
15+
16+
dependency:
17+
files:
18+
- package.json # If this is a npm project.

‎.markdownlint.json‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"MD007": {
3+
"indent": 2
4+
},
5+
"MD013": {
6+
"code_blocks": false,
7+
"tables": false
8+
},
9+
"MD032": false,
10+
"MD033": false,
11+
"default": true
12+
}

‎.pre-commit-config.yaml‎

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
repos:
2+
- repo: https://github.com/mrsimonemms/pre-commit-hooks
3+
rev: v1.2.1
4+
hooks:
5+
- id: license-eye
6+
- repo: https://github.com/pre-commit/pre-commit-hooks
7+
rev: v6.0.0
8+
hooks:
9+
- id: pretty-format-json
10+
args:
11+
- --autofix
12+
- --no-sort-keys
13+
- id: check-json
14+
- id: check-yaml
15+
args:
16+
- --allow-multiple-documents
17+
- id: end-of-file-fixer
18+
- id: trailing-whitespace
19+
- repo: https://github.com/compilerla/conventional-pre-commit
20+
rev: v4.3.0
21+
hooks:
22+
- id: conventional-pre-commit
23+
stages:
24+
- commit-msg
25+
- repo: https://github.com/trussworks/pre-commit-hooks
26+
rev: v2.0.0
27+
hooks:
28+
- id: markdown-toc
29+
- repo: https://github.com/DavidAnson/markdownlint-cli2
30+
rev: v0.20.0
31+
hooks:
32+
- id: markdownlint-cli2
33+
- repo: https://github.com/pre-commit/mirrors-prettier
34+
rev: v4.0.0-alpha.8
35+
hooks:
36+
- id: prettier
37+
stages:
38+
- pre-commit
39+
- repo: https://github.com/pre-commit/mirrors-eslint
40+
rev: v10.0.0-beta.0
41+
hooks:
42+
- id: eslint
43+
files: \.[jt]sx?$ # *.js, *.jsx *.ts and *.tsx
44+
types: [file]
45+
- repo: https://github.com/mrsimonemms/toodaloo
46+
rev: v0.2.4
47+
hooks:
48+
- id: scan

0 commit comments

Comments
 (0)