Skip to content

Commit 971c0a4

Browse files
committed
🎉 init repo
0 parents  commit 971c0a4

Some content is hidden

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

46 files changed

+3326
-0
lines changed

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*
2+
!src/*
3+
!tests.d/*

.editorconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
indent_style = space
9+
trim_trailing_whitespace = true
10+
insert_final_newline = false
11+
indent_size = 2
12+
charset = utf-8
13+
end_of_line = lf
14+
15+
[*.md]
16+
trim_trailing_whitespace = false
17+
18+
[*.bat]
19+
end_of_line = crlf
20+

.gitattributes

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Explicitly declare text files you want to always be normalized and converted
2+
# to native line endings on checkout.
3+
4+
# By default, all text files should have the "lf" (Unix) line endings
5+
* text eol=lf
6+
7+
# Common files
8+
*.yml text
9+
*.xml text
10+
*.yaml text
11+
*.md text
12+
*.txt text
13+
*.json text
14+
*.editorconfig text
15+
*.config text
16+
*.service text
17+
*.sh text
18+
*.zsh text
19+
*.zshrc text
20+
*.gitconfig text
21+
*.gitattributes text
22+
*.dockerignore text
23+
Dockerfile text
24+
VERSION text
25+
26+
# docs
27+
*.css text
28+
*.html text
29+
*.js text
30+
*.ts text
31+
*.stylelintrc text
32+
*.scss text
33+
*.webmanifest text
34+
*.svg text
35+
36+
# Windows text files that should be normalized to crlf
37+
*.ps1 text eol=crlf
38+
*.cmd text eol=crlf
39+
*.bat text eol=crlf
40+
41+
# Binary files that should not be normalized or diffed
42+
*.png binary
43+
*.gif binary
44+
*.jpg binary
45+
*.bmp binary
46+
*.ico binary
47+
*.ttf binary
48+
*.pdf binary
49+
*.7z binary
50+
*.zip binary
51+
52+
53+
# To list all file extensions present in the repo in ps1:
54+
# Get-Childitem -Recurse | Select-Object Extension -Unique
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: "Bug report 🐛"
2+
description: Report errors or unexpected behavior
3+
labels: [bug]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Please make sure to [search for existing issues](https://github.com/jcaillon/valet-additional-commands/issues) before filing a new one!
9+
10+
11+
12+
- type: input
13+
attributes:
14+
label: Valet version
15+
placeholder: "x.x.x"
16+
description: |
17+
You can obtain the valet version by running `valet --version`.
18+
validations:
19+
required: true
20+
21+
- type: input
22+
attributes:
23+
label: Bash version and OS.
24+
placeholder: "5.x.x on windows git bash"
25+
description: |
26+
You can obtain the bash version by running `bash --version`.
27+
validations:
28+
required: true
29+
30+
- type: textarea
31+
attributes:
32+
label: Steps to reproduce
33+
placeholder: Tell us the steps required to trigger your bug.
34+
validations:
35+
required: true
36+
37+
- type: textarea
38+
attributes:
39+
label: Expected Behavior
40+
description: If you want to include screenshots, paste them into the markdown editor below.
41+
placeholder: What were you expecting?
42+
validations:
43+
required: false
44+
45+
- type: textarea
46+
attributes:
47+
label: Actual Behavior
48+
placeholder: What happened instead?
49+
validations:
50+
required: true
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: "Documentation Issue 📚"
3+
about: Report issues in our documentation
4+
title: ''
5+
labels: documentation
6+
assignees: ''
7+
8+
---
9+
10+
<!-- Briefly describe which document needs to be corrected and why. -->
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: "Feature Request/Idea 🚀"
3+
about: Suggest a new feature or improvement (this does not mean you have to implement
4+
it)
5+
title: ''
6+
labels: enhancement
7+
assignees: ''
8+
9+
---
10+
11+
<!--
12+
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨
13+
14+
I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING:
15+
1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement.
16+
2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement.
17+
3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number).
18+
4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement.
19+
5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement.
20+
21+
All good? Then proceed!
22+
-->
23+
24+
# Description of the new feature/enhancement
25+
26+
<!--
27+
A clear and concise description of what the problem is that the new feature would solve.
28+
Describe why and how a user would use this new functionality (if applicable).
29+
-->
30+
31+
# Proposed technical implementation details (optional)
32+
33+
<!--
34+
A clear and concise description of what you want to happen.
35+
-->

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
blank_issues_enabled: true
2+
3+
# contact_links:
4+
# - name: Microsoft Security Response Center 🔐
5+
6+
# about: Please report security vulnerabilities to this email address.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## Summary of the Pull Request
2+
3+
## References and Relevant Issues
4+
5+
## Detailed Description of the Pull Request / Additional comments
6+
7+
## Validation Steps Performed
8+
9+
## PR Checklist
10+
11+
- [ ] I have implemented the necessary tests for the feature
12+
- [ ] I have run `valet self test --auto-approve --core-only` and all tests passed
13+
- [ ] The documentation has been updated (if needed)
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# The workflow build and push a docker image on new tags and the latest branch.
2+
name: build-image-on-tag
3+
4+
# Controls when the workflow will run
5+
on:
6+
push:
7+
tags:
8+
- "v*.*.*"
9+
branches:
10+
- latest
11+
12+
# Allows you to run this workflow manually from the Actions tab
13+
workflow_dispatch:
14+
15+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
16+
jobs:
17+
# This workflow contains a single job called "build"
18+
build-image:
19+
# The type of runner that the job will run on
20+
runs-on: ubuntu-latest
21+
22+
# Steps represent a sequence of tasks that will be executed as part of the job
23+
steps:
24+
- name: Docker meta
25+
id: meta
26+
uses: docker/metadata-action@v5
27+
with:
28+
# list of Docker images to use as base name for tags
29+
images: |
30+
noyacode/dot
31+
ghcr.io/jcaillon/dot
32+
# generate Docker tags based on the following events/attributes
33+
tags: |
34+
type=semver,pattern={{version}}
35+
type=ref,event=branch
36+
37+
- name: Set up QEMU
38+
uses: docker/setup-qemu-action@v3
39+
40+
- name: Set up Docker Buildx
41+
uses: docker/setup-buildx-action@v3
42+
43+
- name: Login to Docker Hub
44+
if: github.event_name != 'pull_request'
45+
uses: docker/login-action@v3
46+
with:
47+
username: ${{ vars.DOCKERHUB_USERNAME }}
48+
password: ${{ secrets.DOCKERHUB_TOKEN }}
49+
50+
- name: Login to GHCR
51+
if: github.event_name != 'pull_request'
52+
uses: docker/login-action@v3
53+
with:
54+
registry: ghcr.io
55+
username: ${{ github.repository_owner }}
56+
password: ${{ secrets.GITHUB_TOKEN }}
57+
58+
- name: Checkout repository
59+
uses: actions/checkout@v3
60+
61+
- name: Build and push
62+
uses: docker/build-push-action@v6
63+
with:
64+
context: .
65+
push: ${{ github.event_name != 'pull_request' }}
66+
tags: ${{ steps.meta.outputs.tags }}
67+
labels: ${{ steps.meta.outputs.labels }}

.github/workflows/ci.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This is a basic workflow to help you get started with Actions
2+
name: CI
3+
4+
# Controls when the workflow will run
5+
on:
6+
# Triggers the workflow on push or pull request events but only for the "main" branch
7+
push:
8+
branches: [ "main" ]
9+
paths-ignore:
10+
- 'docs/**'
11+
pull_request:
12+
branches: [ "main" ]
13+
paths-ignore:
14+
- 'docs/**'
15+
16+
# Allows you to run this workflow manually from the Actions tab
17+
workflow_dispatch:
18+
19+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
20+
jobs:
21+
# This workflow contains a single job called "build"
22+
build:
23+
# The type of runner that the job will run on
24+
runs-on: ubuntu-latest
25+
26+
# Steps represent a sequence of tasks that will be executed as part of the job
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v4
30+
with:
31+
fetch-depth: 1
32+
submodules: recursive
33+
34+
# Runs our tests
35+
- name: Run valet tests
36+
run: |
37+
chmod +x valet
38+
chmod +x valet.d/commands.d/self-build.sh
39+
export VALET_CONFIG_ENABLE_COLORS=true
40+
export VALET_CONFIG_DISABLE_PROGRESS=true
41+
./valet self test -C

0 commit comments

Comments
 (0)