Skip to content

Commit 49d9232

Browse files
authored
Fix ignore for step.yml (#26)
- Ignore step.yml schema validation if ignore flag is set. This allows use of check step with non-Step repositories, like Bitrise CLI. - Updated golangci-lint version - Extended yaml ignore list with Bitrise CLI dirs
1 parent e7f8e76 commit 49d9232

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.yamllint.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
extends: default
22

3+
# Bitrise CLI contains _examples, _lessons
34
ignore: |
45
_tmp/
56
.bitrise.secrets.yml
67
.git/
78
.github/
89
vendor/
10+
_examples/
11+
_lessons/
912
1013
rules:
1114
empty-lines: { max: 1 }

checks.bitrise.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ workflows:
2727
stepman audit --step-yml ./step.yml
2828
- git::https://github.com/bitrise-steplib/steps-validate-json-schema.git@main:
2929
title: Validate JSON schema
30+
run_if: "{{enveq \"SKIP_STEP_YML_VALIDATION\" \"false\"}}"
3031
inputs:
3132
- schema_url: https://raw.githubusercontent.com/bitrise-io/bitrise-json-schemas/main/step.schema.json
3233
- yaml_path: ./step.yml
@@ -45,7 +46,7 @@ workflows:
4546
- content: |-
4647
#!/bin/env bash
4748
set -xeo pipefail
48-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.47.1
49+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.47.3
4950
golangci-lint run --timeout 5m
5051
5152
unit_test:

0 commit comments

Comments
 (0)