Skip to content

Commit

Permalink
Merge pull request #1 from mhristof/bug-add-basic-checks
Browse files Browse the repository at this point in the history
bug-add-basic-checks
  • Loading branch information
mhristof authored Feb 15, 2020
2 parents 678aeb3 + 3c293ff commit 269b71c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,9 @@ jobs:

steps:
- uses: actions/checkout@v1
- name: Setup Node.js for use with actions
uses: actions/[email protected]
- name: install codedown
run: npm install -g codedown
- name: get terraform-provider-aws
run: make terraform-provider-aws
- name: generate all
run: make
- name: test
run: ./options.sh | jq .
- name: add packages
run: |
sudo apt-get update
sudo apt-get install -y libxml2-utils
- name: test xml
run: make validate
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ SHELL := bash
.SHELLFLAGS := -eu -o pipefail -c
.ONESHELL:

CURRENT_BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)

pbpaste.alfredworkflow:
git archive --format zip HEAD > pbpaste.alfredworkflow
Expand All @@ -15,6 +16,13 @@ version:
mversion:
@git show origin/master:info.plist | grep version -A1 | tail -1 | grep -oP '[\d\.]*'

validate:
xmllint info.plist
awk '/items/,/<\/string/' info.plist | grep -v items | sed 's/.*string>\[/\[/g' | sed 's!</string>!!g' | jq

fragment:
@echo $(CURRENT_BRANCH) | tr -s '-' ' ' | cut -d ' ' -f1

all:
@echo "Makefile needs your attention"

Expand Down
2 changes: 1 addition & 1 deletion info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>0.1.0</string>
<string>0.1.1</string>
<key>webaddress</key>
<string></string>
</dict>
Expand Down

0 comments on commit 269b71c

Please sign in to comment.