ci(actions): update git actions to latest versions

This commit is contained in:
Traphalet 2022-10-27 13:28:16 +03:00
parent fd2a3f816e
commit f920ff341b
19 changed files with 110 additions and 100 deletions

View File

@ -33,7 +33,7 @@ runs:
brew install curl zip unzip kerl coreutils openssl@1.1 brew install curl zip unzip kerl coreutils openssl@1.1
echo "/usr/local/opt/bison/bin" >> $GITHUB_PATH echo "/usr/local/opt/bison/bin" >> $GITHUB_PATH
echo "/usr/local/bin" >> $GITHUB_PATH echo "/usr/local/bin" >> $GITHUB_PATH
- uses: actions/cache@v2 - uses: actions/cache@v3
id: cache id: cache
with: with:
path: ~/.kerl/${{ inputs.otp }} path: ~/.kerl/${{ inputs.otp }}

View File

@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Check apps version - name: Check apps version

View File

@ -29,7 +29,7 @@ jobs:
DOCKER_TAG_VERSION: ${{ steps.get_profile.outputs.DOCKER_TAG_VERSION }} DOCKER_TAG_VERSION: ${{ steps.get_profile.outputs.DOCKER_TAG_VERSION }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
ref: ${{ github.event.inputs.branch_or_tag }} # when input is not given, the event tag is used ref: ${{ github.event.inputs.branch_or_tag }} # when input is not given, the event tag is used
path: source path: source
@ -86,7 +86,7 @@ jobs:
run: | run: |
make -C source deps-all make -C source deps-all
zip -ryq source.zip source/* source/.[^.]* zip -ryq source.zip source/* source/.[^.]*
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
name: source name: source
path: source.zip path: source.zip
@ -146,24 +146,24 @@ jobs:
steps: steps:
- uses: AutoModality/action-clean@v1 - uses: AutoModality/action-clean@v1
if: matrix.build_machine == 'aws-arm64' if: matrix.build_machine == 'aws-arm64'
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v3
with: with:
name: source name: source
path: . path: .
- name: unzip source code - name: unzip source code
run: unzip -q source.zip run: unzip -q source.zip
- uses: docker/setup-buildx-action@v1 - uses: docker/setup-buildx-action@v2
- name: Login for docker. - name: Login for docker.
uses: docker/login-action@v1 uses: docker/login-action@v2
if: matrix.registry == 'docker.io' if: matrix.registry == 'docker.io'
with: with:
username: ${{ secrets.DOCKER_HUB_USER }} username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }} password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Login for AWS ECR - name: Login for AWS ECR
uses: docker/login-action@v1 uses: docker/login-action@v2
if: matrix.registry == 'public.ecr.aws' if: matrix.registry == 'public.ecr.aws'
with: with:
registry: public.ecr.aws registry: public.ecr.aws
@ -201,7 +201,7 @@ jobs:
echo "::set-output name=img_labels::${img_labels}" echo "::set-output name=img_labels::${img_labels}"
# NOTE, Pls make sure this is identical as the one in job 'docker-push-multi-arch-manifest' # NOTE, Pls make sure this is identical as the one in job 'docker-push-multi-arch-manifest'
- uses: docker/metadata-action@v3 - uses: docker/metadata-action@v4
id: meta id: meta
with: with:
images: ${{ matrix.registry }}/${{ github.repository_owner }}/${{ matrix.profile }} images: ${{ matrix.registry }}/${{ github.repository_owner }}/${{ matrix.profile }}
@ -212,7 +212,7 @@ jobs:
labels: labels:
${{ steps.pre-meta.outputs.img_labels }} ${{ steps.pre-meta.outputs.img_labels }}
- uses: docker/build-push-action@v2 - uses: docker/build-push-action@v3
with: with:
push: ${{ needs.prepare.outputs.IS_EXACT_TAG }} push: ${{ needs.prepare.outputs.IS_EXACT_TAG }}
pull: true pull: true
@ -275,7 +275,7 @@ jobs:
registry: docker.io registry: docker.io
steps: steps:
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v3
with: with:
name: source name: source
path: . path: .
@ -283,13 +283,13 @@ jobs:
- name: unzip source code - name: unzip source code
run: unzip -q source.zip run: unzip -q source.zip
- uses: docker/login-action@v1 - uses: docker/login-action@v2
if: matrix.registry == 'docker.io' if: matrix.registry == 'docker.io'
with: with:
username: ${{ secrets.DOCKER_HUB_USER }} username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }} password: ${{ secrets.DOCKER_HUB_TOKEN }}
- uses: docker/login-action@v1 - uses: docker/login-action@v2
if: matrix.registry == 'public.ecr.aws' if: matrix.registry == 'public.ecr.aws'
with: with:
registry: public.ecr.aws registry: public.ecr.aws
@ -327,7 +327,7 @@ jobs:
echo "::set-output name=img_labels::${img_labels}" echo "::set-output name=img_labels::${img_labels}"
# NOTE, Pls make sure this is identical as the one in job 'docker' # NOTE, Pls make sure this is identical as the one in job 'docker'
- uses: docker/metadata-action@v3 - uses: docker/metadata-action@v4
id: meta id: meta
with: with:
images: ${{ matrix.registry }}/${{ github.repository_owner }}/${{ matrix.profile }} images: ${{ matrix.registry }}/${{ github.repository_owner }}/${{ matrix.profile }}

View File

@ -29,7 +29,7 @@ jobs:
IS_EXACT_TAG: ${{ steps.get_profile.outputs.IS_EXACT_TAG }} IS_EXACT_TAG: ${{ steps.get_profile.outputs.IS_EXACT_TAG }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
ref: ${{ github.event.inputs.branch_or_tag }} # when input is not given, the event tag is used ref: ${{ github.event.inputs.branch_or_tag }} # when input is not given, the event tag is used
path: source path: source
@ -79,7 +79,7 @@ jobs:
run: | run: |
make -C source deps-all make -C source deps-all
zip -ryq source.zip source/* source/.[^.]* zip -ryq source.zip source/* source/.[^.]*
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
name: source name: source
path: source.zip path: source.zip
@ -95,13 +95,13 @@ jobs:
otp: otp:
- 24.2.1 - 24.2.1
steps: steps:
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v3
with: with:
name: source name: source
path: . path: .
- name: unzip source code - name: unzip source code
run: Expand-Archive -Path source.zip -DestinationPath ./ run: Expand-Archive -Path source.zip -DestinationPath ./
- uses: ilammy/msvc-dev-cmd@v1 - uses: ilammy/msvc-dev-cmd@v1.12.0
- uses: erlef/setup-beam@v1 - uses: erlef/setup-beam@v1
with: with:
otp-version: ${{ matrix.otp }} otp-version: ${{ matrix.otp }}
@ -127,7 +127,7 @@ jobs:
echo "EMQX installed" echo "EMQX installed"
./_build/${{ matrix.profile }}/rel/emqx/bin/emqx uninstall ./_build/${{ matrix.profile }}/rel/emqx/bin/emqx uninstall
echo "EMQX uninstalled" echo "EMQX uninstalled"
- uses: actions/upload-artifact@v1 - uses: actions/upload-artifact@v3
with: with:
name: ${{ matrix.profile }}-windows name: ${{ matrix.profile }}-windows
path: source/_packages/${{ matrix.profile }}/. path: source/_packages/${{ matrix.profile }}/.
@ -145,7 +145,7 @@ jobs:
- macos-11 - macos-11
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v3
with: with:
name: source name: source
path: . path: .
@ -166,7 +166,7 @@ jobs:
apple_developer_identity: ${{ secrets.APPLE_DEVELOPER_IDENTITY }} apple_developer_identity: ${{ secrets.APPLE_DEVELOPER_IDENTITY }}
apple_developer_id_bundle: ${{ secrets.APPLE_DEVELOPER_ID_BUNDLE }} apple_developer_id_bundle: ${{ secrets.APPLE_DEVELOPER_ID_BUNDLE }}
apple_developer_id_bundle_password: ${{ secrets.APPLE_DEVELOPER_ID_BUNDLE_PASSWORD }} apple_developer_id_bundle_password: ${{ secrets.APPLE_DEVELOPER_ID_BUNDLE_PASSWORD }}
- uses: actions/upload-artifact@v1 - uses: actions/upload-artifact@v3
with: with:
name: ${{ matrix.profile }}-${{ matrix.otp }} name: ${{ matrix.profile }}-${{ matrix.otp }}
path: _packages/${{ matrix.profile }}/. path: _packages/${{ matrix.profile }}/.
@ -253,7 +253,7 @@ jobs:
steps: steps:
- uses: AutoModality/action-clean@v1 - uses: AutoModality/action-clean@v1
if: matrix.build_machine == 'aws-arm64' if: matrix.build_machine == 'aws-arm64'
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v3
with: with:
name: source name: source
path: . path: .
@ -292,7 +292,7 @@ jobs:
--elixir "${IsElixir}" \ --elixir "${IsElixir}" \
--builder "ghcr.io/emqx/emqx-builder/5.0-17:${ELIXIR}-${OTP}-${SYSTEM}" --builder "ghcr.io/emqx/emqx-builder/5.0-17:${ELIXIR}-${OTP}-${SYSTEM}"
done done
- uses: actions/upload-artifact@v1 - uses: actions/upload-artifact@v3
with: with:
name: ${{ matrix.profile }}-${{ matrix.otp }} name: ${{ matrix.profile }}-${{ matrix.otp }}
path: source/_packages/${{ matrix.profile }}/. path: source/_packages/${{ matrix.profile }}/.
@ -312,7 +312,7 @@ jobs:
- profile: emqx - profile: emqx
otp: windows # otp version on windows is rather fixed otp: windows # otp version on windows is rather fixed
steps: steps:
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v3
with: with:
name: ${{ matrix.profile }}-${{ matrix.otp }} name: ${{ matrix.profile }}-${{ matrix.otp }}
path: packages/${{ matrix.profile }} path: packages/${{ matrix.profile }}
@ -334,7 +334,7 @@ jobs:
echo "$(cat $var.sha256) $var" | sha256sum -c || exit 1 echo "$(cat $var.sha256) $var" | sha256sum -c || exit 1
done done
cd - cd -
- uses: aws-actions/configure-aws-credentials@v1 - uses: aws-actions/configure-aws-credentials@v1-node16
with: with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

View File

@ -43,7 +43,7 @@ jobs:
steps: steps:
- uses: AutoModality/action-clean@v1 - uses: AutoModality/action-clean@v1
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: prepare - name: prepare
@ -73,11 +73,11 @@ jobs:
run: | run: |
make ${EMQX_NAME}-elixir-pkg make ${EMQX_NAME}-elixir-pkg
./scripts/pkg-tests.sh ${EMQX_NAME}-elixir-pkg ./scripts/pkg-tests.sh ${EMQX_NAME}-elixir-pkg
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
name: ${{ matrix.profile}}-${{ matrix.otp }}-${{ matrix.os }} name: ${{ matrix.profile}}-${{ matrix.otp }}-${{ matrix.os }}
path: _packages/${{ matrix.profile}}/* path: _packages/${{ matrix.profile}}/*
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
name: "${{ matrix.profile }}_schema_dump" name: "${{ matrix.profile }}_schema_dump"
path: | path: |
@ -94,8 +94,8 @@ jobs:
otp: otp:
- 24.2.1 - 24.2.1
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: ilammy/msvc-dev-cmd@v1 - uses: ilammy/msvc-dev-cmd@v1.12.0
- uses: erlef/setup-beam@v1 - uses: erlef/setup-beam@v1
with: with:
otp-version: ${{ matrix.otp }} otp-version: ${{ matrix.otp }}
@ -119,7 +119,7 @@ jobs:
echo "EMQX installed" echo "EMQX installed"
./_build/${{ matrix.profile }}/rel/emqx/bin/emqx uninstall ./_build/${{ matrix.profile }}/rel/emqx/bin/emqx uninstall
echo "EMQX uninstalled" echo "EMQX uninstalled"
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
name: windows name: windows
path: _packages/${{ matrix.profile}}/* path: _packages/${{ matrix.profile}}/*
@ -139,7 +139,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: prepare - name: prepare
run: | run: |
echo "EMQX_NAME=${{ matrix.profile }}" >> $GITHUB_ENV echo "EMQX_NAME=${{ matrix.profile }}" >> $GITHUB_ENV
@ -153,7 +153,7 @@ jobs:
apple_developer_identity: ${{ secrets.APPLE_DEVELOPER_IDENTITY }} apple_developer_identity: ${{ secrets.APPLE_DEVELOPER_IDENTITY }}
apple_developer_id_bundle: ${{ secrets.APPLE_DEVELOPER_ID_BUNDLE }} apple_developer_id_bundle: ${{ secrets.APPLE_DEVELOPER_ID_BUNDLE }}
apple_developer_id_bundle_password: ${{ secrets.APPLE_DEVELOPER_ID_BUNDLE_PASSWORD }} apple_developer_id_bundle_password: ${{ secrets.APPLE_DEVELOPER_ID_BUNDLE_PASSWORD }}
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
name: macos name: macos
path: _packages/**/* path: _packages/**/*
@ -167,7 +167,7 @@ jobs:
- emqx-enterprise - emqx-enterprise
runs-on: aws-amd64 runs-on: aws-amd64
steps: steps:
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v3
name: Download schema dump name: Download schema dump
with: with:
name: "${{ matrix.profile }}_schema_dump" name: "${{ matrix.profile }}_schema_dump"

View File

@ -8,6 +8,6 @@ jobs:
container: ghcr.io/emqx/emqx-builder/5.0-17:1.13.4-24.2.1-1-ubuntu20.04 container: ghcr.io/emqx/emqx-builder/5.0-17:1.13.4-24.2.1-1-ubuntu20.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Run check-deps-integrity.escript - name: Run check-deps-integrity.escript
run: ./scripts/check-deps-integrity.escript run: ./scripts/check-deps-integrity.escript

View File

@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
container: "ghcr.io/emqx/emqx-builder/5.0-17:1.13.4-24.2.1-1-ubuntu20.04" container: "ghcr.io/emqx/emqx-builder/5.0-17:1.13.4-24.2.1-1-ubuntu20.04"
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 1000 fetch-depth: 1000
- name: Work around https://github.com/actions/checkout/issues/766 - name: Work around https://github.com/actions/checkout/issues/766

View File

@ -23,7 +23,7 @@ jobs:
- name: fix_git_permission - name: fix_git_permission
run: git config --global --add safe.directory '/__w/emqx/emqx' run: git config --global --add safe.directory '/__w/emqx/emqx'
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: ensure rebar - name: ensure rebar

View File

@ -11,7 +11,7 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: ensure rebar - name: ensure rebar
run: ./scripts/ensure-rebar3.sh run: ./scripts/ensure-rebar3.sh
- name: Work around https://github.com/actions/checkout/issues/766 - name: Work around https://github.com/actions/checkout/issues/766

View File

@ -16,7 +16,7 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: install tools - name: install tools
run: apt update && apt install netcat-openbsd run: apt update && apt install netcat-openbsd
- name: Work around https://github.com/actions/checkout/issues/766 - name: Work around https://github.com/actions/checkout/issues/766

View File

@ -10,7 +10,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
steps: steps:
- uses: aws-actions/configure-aws-credentials@v1 - uses: aws-actions/configure-aws-credentials@v1-node16
with: with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

View File

@ -31,7 +31,7 @@ jobs:
shell: bash shell: bash
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: run - name: run
@ -61,7 +61,7 @@ jobs:
./rebar3 eunit -v ./rebar3 eunit -v
./rebar3 ct -v ./rebar3 ct -v
./rebar3 proper -d test/props ./rebar3 proper -d test/props
- uses: actions/upload-artifact@v1 - uses: actions/upload-artifact@v3
if: failure() if: failure()
with: with:
name: logs name: logs

View File

@ -19,7 +19,7 @@ jobs:
container: ghcr.io/emqx/emqx-builder/5.0-17:1.13.4-24.2.1-1-alpine3.15.1 container: ghcr.io/emqx/emqx-builder/5.0-17:1.13.4-24.2.1-1-alpine3.15.1
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
path: source path: source
fetch-depth: 0 fetch-depth: 0
@ -27,7 +27,7 @@ jobs:
run: | run: |
make -C source deps-all make -C source deps-all
zip -ryq source.zip source/* source/.[^.]* zip -ryq source.zip source/* source/.[^.]*
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
name: source name: source
path: source.zip path: source.zip
@ -58,7 +58,7 @@ jobs:
- uses: erlef/setup-beam@v1 - uses: erlef/setup-beam@v1
with: with:
otp-version: "24.2" otp-version: "24.2"
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v3
with: with:
name: source name: source
path: . path: .
@ -131,7 +131,7 @@ jobs:
- uses: erlef/setup-beam@v1 - uses: erlef/setup-beam@v1
with: with:
otp-version: "24.2" otp-version: "24.2"
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v3
with: with:
name: source name: source
path: . path: .
@ -207,7 +207,7 @@ jobs:
echo "waiting ${{ matrix.profile }} cluster scale" echo "waiting ${{ matrix.profile }} cluster scale"
sleep 1 sleep 1
done done
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
repository: emqx/paho.mqtt.testing repository: emqx/paho.mqtt.testing
ref: develop-4.0 ref: develop-4.0

View File

@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- name: Checkout source code - name: Checkout source code
uses: actions/checkout@master uses: actions/checkout@v3
- name: Install gitlint - name: Install gitlint
run: | run: |
sudo apt-get update sudo apt-get update

View File

@ -5,7 +5,7 @@ on:
tags: tags:
- "v5.*" - "v5.*"
pull_request: pull_request:
branchs: branches:
- "master" - "master"
jobs: jobs:
@ -23,11 +23,11 @@ jobs:
JMETER_VERSION: 5.4.3 JMETER_VERSION: 5.4.3
run: | run: |
wget --no-verbose --no-check-certificate -O /tmp/apache-jmeter.tgz https://downloads.apache.org/jmeter/binaries/apache-jmeter-$JMETER_VERSION.tgz wget --no-verbose --no-check-certificate -O /tmp/apache-jmeter.tgz https://downloads.apache.org/jmeter/binaries/apache-jmeter-$JMETER_VERSION.tgz
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
name: apache-jmeter.tgz name: apache-jmeter.tgz
path: /tmp/apache-jmeter.tgz path: /tmp/apache-jmeter.tgz
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: zip emqx docker image - name: zip emqx docker image
id: build_docker id: build_docker
if: endsWith(github.repository, 'emqx') if: endsWith(github.repository, 'emqx')
@ -38,7 +38,7 @@ jobs:
VSN="$(./pkg-vsn.sh $PROFILE)" VSN="$(./pkg-vsn.sh $PROFILE)"
echo "::set-output name=version::${VSN}" echo "::set-output name=version::${VSN}"
docker save -o emqx.tar emqx/emqx:${VSN} docker save -o emqx.tar emqx/emqx:${VSN}
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
name: emqx.tar name: emqx.tar
path: ./emqx.tar path: ./emqx.tar
@ -60,8 +60,8 @@ jobs:
- uses: erlef/setup-beam@v1 - uses: erlef/setup-beam@v1
with: with:
otp-version: "24.2" otp-version: "24.2"
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v3
with: with:
name: emqx.tar name: emqx.tar
path: /tmp path: /tmp
@ -89,17 +89,19 @@ jobs:
done done
docker ps -a docker ps -a
echo HAPROXY_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' haproxy) >> $GITHUB_ENV echo HAPROXY_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' haproxy) >> $GITHUB_ENV
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
repository: emqx/emqx-fvt repository: emqx/emqx-fvt
ref: broker-autotest ref: broker-autotest
path: scripts path: scripts
- uses: actions/setup-java@v1 - uses: actions/setup-java@v3
with: with:
java-version: '8.0.282' # The JDK version to make available on the path. java-version: '8.0.282' # The JDK version to make available on the path.
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
architecture: x64 # (x64 or x86) - defaults to x64 architecture: x64 # (x64 or x86) - defaults to x64
- uses: actions/download-artifact@v2 # https://github.com/actions/setup-java/blob/main/docs/switching-to-v2.md
distribution: 'zulu'
- uses: actions/download-artifact@v3
with: with:
name: apache-jmeter.tgz name: apache-jmeter.tgz
path: /tmp path: /tmp
@ -127,7 +129,7 @@ jobs:
echo "check logs filed" echo "check logs filed"
exit 1 exit 1
fi fi
- uses: actions/upload-artifact@v1 - uses: actions/upload-artifact@v3
if: always() if: always()
with: with:
name: jmeter_logs name: jmeter_logs
@ -154,8 +156,8 @@ jobs:
- uses: erlef/setup-beam@v1 - uses: erlef/setup-beam@v1
with: with:
otp-version: "24.2" otp-version: "24.2"
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v3
with: with:
name: emqx.tar name: emqx.tar
path: /tmp path: /tmp
@ -186,17 +188,19 @@ jobs:
docker ps -a docker ps -a
echo HAPROXY_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' haproxy) >> $GITHUB_ENV echo HAPROXY_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' haproxy) >> $GITHUB_ENV
echo PGSQL_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' pgsql-tls) >> $GITHUB_ENV echo PGSQL_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' pgsql-tls) >> $GITHUB_ENV
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
repository: emqx/emqx-fvt repository: emqx/emqx-fvt
ref: broker-autotest ref: broker-autotest
path: scripts path: scripts
- uses: actions/setup-java@v1 - uses: actions/setup-java@v3
with: with:
java-version: '8.0.282' # The JDK version to make available on the path. java-version: '8.0.282' # The JDK version to make available on the path.
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
architecture: x64 # (x64 or x86) - defaults to x64 architecture: x64 # (x64 or x86) - defaults to x64
- uses: actions/download-artifact@v2 # https://github.com/actions/setup-java/blob/main/docs/switching-to-v2.md
distribution: 'zulu'
- uses: actions/download-artifact@v3
with: with:
name: apache-jmeter.tgz name: apache-jmeter.tgz
path: /tmp path: /tmp
@ -234,7 +238,7 @@ jobs:
echo "check logs filed" echo "check logs filed"
exit 1 exit 1
fi fi
- uses: actions/upload-artifact@v1 - uses: actions/upload-artifact@v3
if: always() if: always()
with: with:
name: jmeter_logs name: jmeter_logs
@ -258,8 +262,8 @@ jobs:
- uses: erlef/setup-beam@v1 - uses: erlef/setup-beam@v1
with: with:
otp-version: "24.2" otp-version: "24.2"
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v3
with: with:
name: emqx.tar name: emqx.tar
path: /tmp path: /tmp
@ -290,17 +294,19 @@ jobs:
docker ps -a docker ps -a
echo HAPROXY_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' haproxy) >> $GITHUB_ENV echo HAPROXY_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' haproxy) >> $GITHUB_ENV
echo MYSQL_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' mysql-tls) >> $GITHUB_ENV echo MYSQL_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' mysql-tls) >> $GITHUB_ENV
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
repository: emqx/emqx-fvt repository: emqx/emqx-fvt
ref: broker-autotest ref: broker-autotest
path: scripts path: scripts
- uses: actions/setup-java@v1 - uses: actions/setup-java@v3
with: with:
java-version: '8.0.282' # The JDK version to make available on the path. java-version: '8.0.282' # The JDK version to make available on the path.
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
architecture: x64 # (x64 or x86) - defaults to x64 architecture: x64 # (x64 or x86) - defaults to x64
- uses: actions/download-artifact@v2 # https://github.com/actions/setup-java/blob/main/docs/switching-to-v2.md
distribution: 'zulu'
- uses: actions/download-artifact@v3
with: with:
name: apache-jmeter.tgz name: apache-jmeter.tgz
path: /tmp path: /tmp
@ -338,7 +344,7 @@ jobs:
echo "check logs filed" echo "check logs filed"
exit 1 exit 1
fi fi
- uses: actions/upload-artifact@v1 - uses: actions/upload-artifact@v3
if: always() if: always()
with: with:
name: jmeter_logs name: jmeter_logs
@ -358,8 +364,8 @@ jobs:
- uses: erlef/setup-beam@v1 - uses: erlef/setup-beam@v1
with: with:
otp-version: "24.2" otp-version: "24.2"
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v3
with: with:
name: emqx.tar name: emqx.tar
path: /tmp path: /tmp
@ -387,7 +393,7 @@ jobs:
done done
docker ps -a docker ps -a
echo HAPROXY_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' haproxy) >> $GITHUB_ENV echo HAPROXY_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' haproxy) >> $GITHUB_ENV
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
repository: emqx/emqx-fvt repository: emqx/emqx-fvt
ref: broker-autotest ref: broker-autotest
@ -400,12 +406,14 @@ jobs:
cd target cd target
docker run --name jwks_server --network emqx_bridge --ip 172.100.239.88 -d -v $(pwd)/jwkserver-0.0.1.jar:/jwks_server/jwkserver-0.0.1.jar --workdir /jwks_server openjdk:8-jdk bash \ docker run --name jwks_server --network emqx_bridge --ip 172.100.239.88 -d -v $(pwd)/jwkserver-0.0.1.jar:/jwks_server/jwkserver-0.0.1.jar --workdir /jwks_server openjdk:8-jdk bash \
-c "java -jar jwkserver-0.0.1.jar" -c "java -jar jwkserver-0.0.1.jar"
- uses: actions/setup-java@v1 - uses: actions/setup-java@v3
with: with:
java-version: '8.0.282' # The JDK version to make available on the path. java-version: '8.0.282' # The JDK version to make available on the path.
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
architecture: x64 # (x64 or x86) - defaults to x64 architecture: x64 # (x64 or x86) - defaults to x64
- uses: actions/download-artifact@v2 # https://github.com/actions/setup-java/blob/main/docs/switching-to-v2.md
distribution: 'zulu'
- uses: actions/download-artifact@v3
with: with:
name: apache-jmeter.tgz name: apache-jmeter.tgz
path: /tmp path: /tmp
@ -434,7 +442,7 @@ jobs:
echo "check logs filed" echo "check logs filed"
exit 1 exit 1
fi fi
- uses: actions/upload-artifact@v1 - uses: actions/upload-artifact@v3
if: always() if: always()
with: with:
name: jmeter_logs name: jmeter_logs
@ -455,8 +463,8 @@ jobs:
- uses: erlef/setup-beam@v1 - uses: erlef/setup-beam@v1
with: with:
otp-version: "24.2" otp-version: "24.2"
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v3
with: with:
name: emqx.tar name: emqx.tar
path: /tmp path: /tmp
@ -485,17 +493,19 @@ jobs:
done done
docker ps -a docker ps -a
echo HAPROXY_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' haproxy) >> $GITHUB_ENV echo HAPROXY_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' haproxy) >> $GITHUB_ENV
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
repository: emqx/emqx-fvt repository: emqx/emqx-fvt
ref: broker-autotest ref: broker-autotest
path: scripts path: scripts
- uses: actions/setup-java@v1 - uses: actions/setup-java@v3
with: with:
java-version: '8.0.282' # The JDK version to make available on the path. java-version: '8.0.282' # The JDK version to make available on the path.
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
architecture: x64 # (x64 or x86) - defaults to x64 architecture: x64 # (x64 or x86) - defaults to x64
- uses: actions/download-artifact@v2 # https://github.com/actions/setup-java/blob/main/docs/switching-to-v2.md
distribution: 'zulu'
- uses: actions/download-artifact@v3
with: with:
name: apache-jmeter.tgz name: apache-jmeter.tgz
path: /tmp path: /tmp
@ -524,7 +534,7 @@ jobs:
echo "check logs filed" echo "check logs filed"
exit 1 exit 1
fi fi
- uses: actions/upload-artifact@v1 - uses: actions/upload-artifact@v3
if: always() if: always()
with: with:
name: jmeter_logs name: jmeter_logs
@ -534,7 +544,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [advanced_feat,pgsql_authn_authz,JWT_authn,mysql_authn_authz,built_in_database_authn_authz] needs: [advanced_feat,pgsql_authn_authz,JWT_authn,mysql_authn_authz,built_in_database_authn_authz]
steps: steps:
- uses: geekyeggo/delete-artifact@v1 - uses: geekyeggo/delete-artifact@v2
with: with:
name: emqx.tar name: emqx.tar

View File

@ -24,7 +24,7 @@ jobs:
run: run:
shell: bash shell: bash
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
name: Checkout name: Checkout
with: with:
path: emqx path: emqx
@ -45,7 +45,7 @@ jobs:
cd emqx cd emqx
make emqx-tgz make emqx-tgz
make emqx-enterprise-tgz make emqx-enterprise-tgz
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
name: Upload built emqx and test scenario name: Upload built emqx and test scenario
with: with:
name: emqx_built name: emqx_built
@ -75,7 +75,7 @@ jobs:
- uses: erlef/setup-beam@v1 - uses: erlef/setup-beam@v1
with: with:
otp-version: "24.2" otp-version: "24.2"
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
repository: hawk/lux repository: hawk/lux
ref: lux-2.8.1 ref: lux-2.8.1
@ -88,7 +88,7 @@ jobs:
./configure ./configure
make make
echo "$(pwd)/bin" >> $GITHUB_PATH echo "$(pwd)/bin" >> $GITHUB_PATH
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v3
name: Download built emqx and test scenario name: Download built emqx and test scenario
with: with:
name: emqx_built name: emqx_built
@ -114,7 +114,7 @@ jobs:
docker logs node2.emqx.io | tee lux_logs/emqx2.log docker logs node2.emqx.io | tee lux_logs/emqx2.log
exit 1 exit 1
fi fi
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
name: Save debug data name: Save debug data
if: failure() if: failure()
with: with:

View File

@ -22,7 +22,7 @@ jobs:
fast_ct_apps: ${{ steps.run_find_apps.outputs.fast_ct_apps }} fast_ct_apps: ${{ steps.run_find_apps.outputs.fast_ct_apps }}
docker_ct_apps: ${{ steps.run_find_apps.outputs.docker_ct_apps }} docker_ct_apps: ${{ steps.run_find_apps.outputs.docker_ct_apps }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
path: source path: source
fetch-depth: 0 fetch-depth: 0
@ -43,7 +43,7 @@ jobs:
./rebar3 as test compile ./rebar3 as test compile
cd .. cd ..
zip -ryq source.zip source/* source/.[^.]* zip -ryq source.zip source/* source/.[^.]*
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
name: source name: source
path: source.zip path: source.zip
@ -64,7 +64,7 @@ jobs:
steps: steps:
- uses: AutoModality/action-clean@v1 - uses: AutoModality/action-clean@v1
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v3
with: with:
name: source name: source
path: . path: .
@ -86,7 +86,7 @@ jobs:
working-directory: source working-directory: source
run: make proper run: make proper
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
name: coverdata name: coverdata
path: source/_build/test/cover path: source/_build/test/cover
@ -107,7 +107,7 @@ jobs:
steps: steps:
- uses: AutoModality/action-clean@v1 - uses: AutoModality/action-clean@v1
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v3
with: with:
name: source name: source
path: . path: .
@ -122,11 +122,11 @@ jobs:
REDIS_TAG: 6 REDIS_TAG: 6
run: | run: |
./scripts/ct/run.sh --app ${{ matrix.app_name }} ./scripts/ct/run.sh --app ${{ matrix.app_name }}
- uses: actions/upload-artifact@v1 - uses: actions/upload-artifact@v3
with: with:
name: coverdata name: coverdata
path: source/_build/test/cover path: source/_build/test/cover
- uses: actions/upload-artifact@v1 - uses: actions/upload-artifact@v3
if: failure() if: failure()
with: with:
name: logs_${{ matrix.otp_release }}-${{ matrix.profile }} name: logs_${{ matrix.otp_release }}-${{ matrix.profile }}
@ -150,7 +150,7 @@ jobs:
steps: steps:
- uses: AutoModality/action-clean@v1 - uses: AutoModality/action-clean@v1
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v3
with: with:
name: source name: source
path: . path: .
@ -203,14 +203,14 @@ jobs:
container: "ghcr.io/emqx/emqx-builder/5.0-17:1.13.4-24.2.1-1-ubuntu20.04" container: "ghcr.io/emqx/emqx-builder/5.0-17:1.13.4-24.2.1-1-ubuntu20.04"
steps: steps:
- uses: AutoModality/action-clean@v1 - uses: AutoModality/action-clean@v1
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v3
with: with:
name: source name: source
path: . path: .
- name: unzip source code - name: unzip source code
run: unzip -q source.zip run: unzip -q source.zip
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v3
name: download coverdata name: download coverdata
with: with:
name: coverdata name: coverdata

View File

@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- name: Checkout source code - name: Checkout source code
uses: actions/checkout@master uses: actions/checkout@v3
- name: Install shellcheck - name: Install shellcheck
run: | run: |
sudo apt-get update sudo apt-get update

View File

@ -17,7 +17,7 @@ jobs:
steps: steps:
- name: Close Stale Issues - name: Close Stale Issues
uses: actions/stale@v4.1.0 uses: actions/stale@v6
with: with:
days-before-stale: 7 days-before-stale: 7
days-before-close: 7 days-before-close: 7