Skip to content
Snippets Groups Projects
Unverified Commit 2381db6a authored by carabasdaniel's avatar carabasdaniel Committed by GitHub
Browse files

Merge pull request #441 from ekohl/run-validations-prior-to-matrix

Run validation steps prior to the matrix build
parents 3899cf84 46d41a23
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,7 @@ common:
script: bundle exec rake beaker
stage: acceptance
includes:
- env: CHECK="check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop syntax lint metadata_lint"
- env: CHECK="validate lint check rubocop"
stage: static
- env: PUPPET_GEM_VERSION="~> 6.0" CHECK=parallel_spec
rvm: 2.5.7
......@@ -114,7 +114,7 @@ appveyor.yml:
use_litmus: false
matrix:
- RUBY_VERSION: 25-x64
CHECK: "syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop"
CHECK: "validate lint check rubocop"
- PUPPET_GEM_VERSION: ~> 6.0
RUBY_VERSION: 25
CHECK: parallel_spec
......@@ -602,12 +602,12 @@ Gemfile:
ruby_versions:
'2.5.7':
checks:
- 'syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop'
- 'validate lint check rubocop'
- parallel_spec
puppet_version: '~> 6'
'2.7.2':
checks:
- 'syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop'
- 'validate lint check rubocop'
- parallel_spec
puppet_version: '~> 7'
# beaker: true
......@@ -645,6 +645,6 @@ spec/spec_helper.rb:
unmanaged: true
.github/workflows/spec.yml:
unmanaged: true
checks: 'syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop'
checks: 'validate lint check rubocop'
.github/workflows/release.yml:
unmanaged: true
......@@ -57,6 +57,11 @@ jobs:
echo STEP_ID=Setup-Acceptance-Test-Matrix >> $GITHUB_ENV
echo STEP_START=$(date +%s) >> $GITHUB_ENV
- name: Run validation steps
run: |
bundle exec rake validate
if: ${{ github.repository_owner == '<%= common['owner'] %>' }}
- name: Setup Acceptance Test Matrix
id: get-matrix
run: |
......
......@@ -61,6 +61,11 @@ jobs:
echo STEP_ID=Setup-Acceptance-Test-Matrix >> $GITHUB_ENV
echo STEP_START=$(date +%s) >> $GITHUB_ENV
- name: Run Static & Syntax Tests
if: ${{ github.repository_owner == '<%= common['owner'] %>' }}
run: |
buildevents cmd $TRACE_ID $STEP_ID 'static_syntax_checks' -- bundle exec rake <%= @configs['checks'] %>
- name: Setup Spec Test Matrix
id: get-matrix
run: |
......@@ -126,10 +131,6 @@ jobs:
buildevents cmd $TRACE_ID $STEP_ID 'bundle env' -- bundle env
echo ::endgroup::
- name: Run Static & Syntax Tests
run: |
buildevents cmd $TRACE_ID $STEP_ID 'static_syntax_checks Puppet ${{ matrix.puppet_version }}, Ruby ${{ matrix.ruby_version }}' -- bundle exec rake <%= @configs['checks'] %>
- name: Run parallel_spec tests
run: |
buildevents cmd $TRACE_ID $STEP_ID 'rake parallel_spec Puppet ${{ matrix.puppet_version }}, Ruby ${{ matrix.ruby_version }}' -- bundle exec rake parallel_spec
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment