Skip to content

Commit

Permalink
Initial import
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed Feb 12, 2023
1 parent 12f4891 commit fe28f4b
Show file tree
Hide file tree
Showing 11 changed files with 906 additions and 1 deletion.
130 changes: 130 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
# inspired by https://github.com/alexkaratarakis/gitattributes

# Handle line endings automatically for files detected as text
# and leave all files detected as binary untouched.
* text=auto

#
# The above will handle all files with names NOT matching patterns defined below
#

# Git files
.gitattributes text eol=lf
**/.gitattributes text eol=lf
.gitignore text eol=lf
**/.gitignore text eol=lf


# Documents
*.doc binary diff=astextplain
*.docx binary diff=astextplain
*.dot binary diff=astextplain
*.pdf binary diff=astextplain
*.ppt binary diff=astextplain
*.pptx binary diff=astextplain
*.rtf binary diff=astextplain
*.vsd binary diff=astextplain
*.vsdx binary diff=astextplain
*.odt binary diff=odf
*.ods binary diff=odf
*.odp binary diff=odf
*.adoc text
*.csv text
*.md text diff=markdown
*.txt text


# Config/Serialisation
.editorconfig text
**/.editorconfig text
*.ini text
*.properties text
*.json text
*.toml text
*.xml text
*.yaml text
*.yml text


# Scripts
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf
*.bash text eol=lf
*.fish text eol=lf
*.sh text eol=lf
*.zsh text eol=lf
*.hx text
*.lua text
*.php text
*.python text
*.sql text


# Archives
*.7z binary
*.gz binary
*.tar binary
*.tar.gz binary
*.tgz binary
*.xz binary
*.zip binary


# Native binaries
*.dll binary
*.dylib binary
*.exe binary
*.so binary


# Images
*.eps binary
*.gif binary
*.ico binary
*.jpg binary
*.jpeg binary
*.png binary
*.svg text
*.svgz binary
*.tif binary
*.tiff binary


# Fonts
*.eot binary
*.otf binary
*.ttf binary
*.woff binary


# Java
*.gradle text diff=java
*.gradle.kts text diff=java
*.java text diff=java
*.class binary
*.ear binary
*.jceks binary
*.jks binary
*.jar binary
*.pak binary
*.war binary
*.jsp text
*.jspf text
*.jspx text
*.tld text
*.tag text
*.tagx text


# Web
*.css text diff=css
*.htm text diff=html
*.html text diff=html
*.js text


# https://git-scm.com/docs/gitattributes#_export_ignore
.gitattributes export-ignore
.gitignore export-ignore
.gitkeep export-ignore
6 changes: 6 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*Issue #, if available:*

*Description of changes:*


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
day: monday
time: "09:00"
commit-message:
prefix: fix
prefix-development: chore
include: scope
labels:
- dependencies
26 changes: 26 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Configuration for probot-stale - https://github.com/probot/stale

# Number of days of inactivity before an issue becomes stale
daysUntilStale: 120

# Number of days of inactivity before a stale issue is closed
daysUntilClose: 14

# Issues with these labels will never be considered stale
exemptLabels:
- enhancement
- pinned
- security

# Label to use when marking an issue as stale
staleLabel: wontfix

# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed in 7 days if no further activity occurs.
If the issue is still valid, please add a respective comment to prevent this
issue from being closed automatically. Thank you for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
75 changes: 75 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# SPDX-FileCopyrightText: © Vegard IT GmbH (https://vegardit.com) and contributors
# SPDX-FileContributor: Sebastian Thomschke, Vegard IT GmbH
# SPDX-License-Identifier: Apache-2.0
#
# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions
name: Build

on:
push:
branches:
- '**'
tags-ignore:
- '**'
paths-ignore:
- '**/*.md'
- '.github/*.yml'
pull_request:
workflow_dispatch:

defaults:
run:
shell: bash

jobs:

test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest

steps:
- name: Git Checkout
uses: actions/checkout@v3 #https://github.com/actions/checkout

- name: Install yq '4.30.6'
id: install-yq-4_30_6
uses: ./
with:
version: 4.30.6

- name: Test yq '4.30.6'
run: |
set -euxo pipefail
yq --version
echo 'greeting: "Hello World"' | yq -e ".greeting"
[[ '${{ steps.install-yq-4_30_6.outputs.version }}' == '4.30.6' ]]
- name: Install yq 'any'
id: install-yq-any
uses: ./

- name: Test yq 'any'
run: |
set -euxo pipefail
yq --version
echo 'greeting: "Hello World"' | yq -e ".greeting"
[[ '${{ steps.install-yq-any.outputs.version }}' == '4.30.6' ]]
- name: Install yq 'latest'
id: install-yq-latest
uses: ./
with:
version: latest

- name: Test yq 'latest'
run: |
set -euxo pipefail
yq --version
echo 'greeting: "Hello World"' | yq -e ".greeting"
[[ '${{ steps.install-yq.outputs.latest.version }}' != '4.30.6' ]]
34 changes: 34 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Local work folder that is not checked in
_LOCAL/

# Eclipse
.settings/
.project
**/.*.md.html

# IntelliJ
.idea
*.iml
*.ipr
*.iws

# Eclipse Theia
.theia

# Visual Studio Code
.vscode

# OSX
.DS_Store

# Vim
*.swo
*.swp

# Temp files
.history
*.tmp
*.bak
/dump
/target
/tools/dump
Loading

0 comments on commit fe28f4b

Please sign in to comment.