1
0
mirror of https://github.com/sasjs/core.git synced 2026-01-15 12:30:06 +00:00

Merge pull request #197 from sasjs/devops

gitpod & git hook updates
This commit is contained in:
Allan Bowe
2022-03-11 23:25:20 +02:00
committed by GitHub
2 changed files with 12 additions and 5 deletions

View File

@@ -1,5 +1,12 @@
#!/bin/bash #!/bin/bash
sasjs lint
# Ensure lint is passing
LINT=`sasjs lint`
if [[ "$LINT" != "✔ All matched files use @sasjs/lint code style!" ]]; then
echo "$LINT"
echo "To commit in spite of these warnings, use the -n parameter."
exit 1
fi
# Avoid commits to the master branch # Avoid commits to the master branch
BRANCH=`git rev-parse --abbrev-ref HEAD` BRANCH=`git rev-parse --abbrev-ref HEAD`

View File

@@ -1,7 +1,7 @@
tasks: tasks:
- init: | - init: npm install -g npm
nvm install --lts - command: npm i
npm i -g @sasjs/cli - command: npm i -g @sasjs/cli
image: image:
file: .gitpod.dockerfile file: .gitpod.dockerfile