ci: fix actions/upload-artifact v4 compatibility

This commit is contained in:
Ivan Dyachkov 2024-01-11 12:57:47 +01:00
parent bd6375e2cf
commit f65ab9b48c
7 changed files with 27 additions and 21 deletions

View File

@ -99,9 +99,10 @@ jobs:
- uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0 - uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
if: success() if: success()
with: with:
name: ${{ matrix.profile }} name: ${{ matrix.profile }}-${{ matrix.otp }}-${{ matrix.os }}
path: _packages/${{ matrix.profile }}/ path: _packages/${{ matrix.profile }}/
retention-days: 7 retention-days: 7
compression-level: 0
linux: linux:
runs-on: [self-hosted, ephemeral, linux, "${{ matrix.arch }}"] runs-on: [self-hosted, ephemeral, linux, "${{ matrix.arch }}"]
@ -195,9 +196,10 @@ jobs:
fi fi
- uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0 - uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
with: with:
name: ${{ matrix.profile }} name: ${{ matrix.profile }}-${{ matrix.otp }}-${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.with_elixir == 'yes' && 'elixir' || 'erlang' }}
path: _packages/${{ matrix.profile }}/ path: _packages/${{ matrix.profile }}/
retention-days: 7 retention-days: 7
compression-level: 0
publish_artifacts: publish_artifacts:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -213,7 +215,7 @@ jobs:
steps: steps:
- uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1 - uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1
with: with:
name: ${{ matrix.profile }} pattern: ${{ matrix.profile }}-*
path: packages/${{ matrix.profile }} path: packages/${{ matrix.profile }}
- name: install dos2unix - name: install dos2unix
run: sudo apt-get update -y && sudo apt install -y dos2unix run: sudo apt-get update -y && sudo apt install -y dos2unix

View File

@ -90,12 +90,13 @@ jobs:
./scripts/pkg-tests.sh ${EMQX_NAME}-elixir-pkg ./scripts/pkg-tests.sh ${EMQX_NAME}-elixir-pkg
- uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0 - uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
with: with:
name: "${{ matrix.profile[0] }}-${{ matrix.profile[1] }}-${{ matrix.profile[2] }}" name: "${{ matrix.profile[0] }}-${{ matrix.profile[1] }}-${{ matrix.profile[2] }}-${{ matrix.profile[3] }}-${{ matrix.profile[4] }}"
path: _packages/${{ matrix.profile[0] }}/* path: _packages/${{ matrix.profile[0] }}/*
retention-days: 7 retention-days: 7
compression-level: 0
- uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0 - uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
with: with:
name: "${{ matrix.profile[0] }}_schema_dump" name: "${{ matrix.profile[0] }}-schema-dump-${{ matrix.profile[1] }}-${{ matrix.profile[2] }}-${{ matrix.profile[3] }}-${{ matrix.profile[4] }}"
path: | path: |
scripts/spellcheck scripts/spellcheck
_build/docgen/${{ matrix.profile[0] }}/schema-en.json _build/docgen/${{ matrix.profile[0] }}/schema-en.json

View File

@ -43,6 +43,6 @@ jobs:
- uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0 - uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
if: failure() if: failure()
with: with:
name: logs-${{ matrix.profile }} name: conftest-logs-${{ matrix.profile }}
path: _build/${{ matrix.profile }}/rel/emqx/logs path: _build/${{ matrix.profile }}/rel/emqx/logs
retention-days: 7 retention-days: 7

View File

@ -89,7 +89,7 @@ jobs:
- uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0 - uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
if: always() if: always()
with: with:
name: jmeter_logs name: jmeter_logs-advanced_feat-${{ matrix.scripts_type }}
path: ./jmeter_logs path: ./jmeter_logs
retention-days: 3 retention-days: 3
@ -156,7 +156,7 @@ jobs:
- uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0 - uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
if: always() if: always()
with: with:
name: jmeter_logs name: jmeter_logs-pgsql_authn_authz-${{ matrix.scripts_type }}_${{ matrix.pgsql_tag }}
path: ./jmeter_logs path: ./jmeter_logs
retention-days: 3 retention-days: 3
@ -216,7 +216,7 @@ jobs:
- uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0 - uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
if: always() if: always()
with: with:
name: jmeter_logs name: jmeter_logs-mysql_authn_authz-${{ matrix.scripts_type }}_${{ matrix.mysql_tag }}
path: ./jmeter_logs path: ./jmeter_logs
retention-days: 3 retention-days: 3
@ -268,7 +268,7 @@ jobs:
- uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0 - uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
if: always() if: always()
with: with:
name: jmeter_logs name: jmeter_logs-JWT_authn-${{ matrix.scripts_type }}
path: ./jmeter_logs path: ./jmeter_logs
retention-days: 3 retention-days: 3
@ -312,6 +312,6 @@ jobs:
- uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0 - uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
if: always() if: always()
with: with:
name: jmeter_logs name: jmeter_logs-built_in_database_authn_authz-${{ matrix.scripts_type }}
path: ./jmeter_logs path: ./jmeter_logs
retention-days: 3 retention-days: 3

View File

@ -48,7 +48,7 @@ jobs:
- uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0 - uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
name: Upload built emqx and test scenario name: Upload built emqx and test scenario
with: with:
name: emqx_built name: relup_tests_emqx_built
path: | path: |
_upgrade_base _upgrade_base
_packages _packages
@ -91,7 +91,7 @@ jobs:
- uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1 - uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1
name: Download built emqx and test scenario name: Download built emqx and test scenario
with: with:
name: emqx_built name: relup_tests_emqx_built
path: . path: .
- name: run relup test - name: run relup test
run: | run: |
@ -115,7 +115,7 @@ jobs:
name: Save debug data name: Save debug data
if: failure() if: failure()
with: with:
name: debug_data name: relup_test_run_debug_data
path: | path: |
lux_logs lux_logs
retention-days: 3 retention-days: 3

View File

@ -66,7 +66,7 @@ jobs:
- uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0 - uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
with: with:
name: coverdata name: coverdata-${{ matrix.profile }}-${{ matrix.otp }}
path: _build/test/cover path: _build/test/cover
retention-days: 7 retention-days: 7
@ -110,7 +110,7 @@ jobs:
run: ./scripts/ct/run.sh --ci --app ${{ matrix.app }} run: ./scripts/ct/run.sh --ci --app ${{ matrix.app }}
- uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0 - uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
with: with:
name: coverdata name: coverdata-${{ matrix.profile }}-${{ matrix.prefix }}-${{ matrix.otp }}-sg${{ matrix.suitegroup }}
path: _build/test/cover path: _build/test/cover
retention-days: 7 retention-days: 7
- name: compress logs - name: compress logs
@ -121,6 +121,7 @@ jobs:
with: with:
name: logs-${{ matrix.profile }}-${{ matrix.prefix }}-${{ matrix.otp }}-sg${{ matrix.suitegroup }} name: logs-${{ matrix.profile }}-${{ matrix.prefix }}-${{ matrix.otp }}-sg${{ matrix.suitegroup }}
path: logs.tar.gz path: logs.tar.gz
compression-level: 0
retention-days: 7 retention-days: 7
ct: ct:
@ -156,7 +157,7 @@ jobs:
make "${{ matrix.app }}-ct" make "${{ matrix.app }}-ct"
- uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0 - uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4.0.0
with: with:
name: coverdata name: coverdata-${{ matrix.profile }}-${{ matrix.prefix }}-${{ matrix.otp }}-sg${{ matrix.suitegroup }}
path: _build/test/cover path: _build/test/cover
if-no-files-found: warn # do not fail if no coverdata found if-no-files-found: warn # do not fail if no coverdata found
retention-days: 7 retention-days: 7
@ -168,6 +169,7 @@ jobs:
with: with:
name: logs-${{ matrix.profile }}-${{ matrix.prefix }}-${{ matrix.otp }}-sg${{ matrix.suitegroup }} name: logs-${{ matrix.profile }}-${{ matrix.prefix }}-${{ matrix.otp }}-sg${{ matrix.suitegroup }}
path: logs.tar.gz path: logs.tar.gz
compression-level: 0
retention-days: 7 retention-days: 7
tests_passed: tests_passed:
@ -205,8 +207,9 @@ jobs:
- uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1 - uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1
name: download coverdata name: download coverdata
with: with:
name: coverdata pattern: coverdata-${{ matrix.profile }}-*
path: _build/test/cover path: _build/test/cover
merge-multiple: true
- name: make cover - name: make cover
env: env:

View File

@ -21,8 +21,8 @@ jobs:
steps: steps:
- uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1 - uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1
with: with:
name: "${{ matrix.profile }}_schema_dump" pattern: "${{ matrix.profile }}-schema-dump-*-x64"
path: /tmp/ merge-multiple: true
- name: Run spellcheck - name: Run spellcheck
run: | run: |
bash /tmp/scripts/spellcheck/spellcheck.sh /tmp/_build/docgen/${{ matrix.profile }}/schema-en.json bash scripts/spellcheck/spellcheck.sh _build/docgen/${{ matrix.profile }}/schema-en.json