X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=.github%2Fworkflows%2Fspec.yml;h=7da4f3ddf05438dc5d474d116057ddfb20f1c89d;hb=4aed9b74b4f469754e10e313704f1994b0ae4a0f;hp=03e2cb8d3e6da70756b43cf2638ff09d6978f926;hpb=f26374dd8d578296bd2fce06fa6e6750155fed42;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/.github/workflows/spec.yml b/.github/workflows/spec.yml index 03e2cb8..7da4f3d 100644 --- a/.github/workflows/spec.yml +++ b/.github/workflows/spec.yml @@ -55,6 +55,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 == 'puppetlabs' }} + run: | + buildevents cmd $TRACE_ID $STEP_ID 'static_syntax_checks' -- bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop + - name: Setup Spec Test Matrix id: get-matrix run: | @@ -83,6 +88,7 @@ jobs: env: BUILDEVENT_FILE: '../buildevents.txt' PUPPET_GEM_VERSION: ${{ matrix.puppet_version }} + FACTER_GEM_VERSION: 'https://github.com/puppetlabs/facter#main' steps: - run: | @@ -119,10 +125,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 syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop - - 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