diff --git a/.github/workflows/tag-action.yml b/.github/workflows/tag-action.yml new file mode 100644 index 0000000..ec3faf4 --- /dev/null +++ b/.github/workflows/tag-action.yml @@ -0,0 +1,18 @@ +name: Create Tag + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + + - uses: valitydev/action-tagger@v2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + with-v: true diff --git a/.github/workflows/test-erlang.yml b/.github/workflows/test-erlang.yml index 3b869e0..ffbcd15 100644 --- a/.github/workflows/test-erlang.yml +++ b/.github/workflows/test-erlang.yml @@ -9,8 +9,8 @@ on: branches: [ '**' ] env: - OTP_VERSION: "24.2.0" - REBAR_VERSION: "3.18" + OTP_VERSION: "27.1.2" + REBAR_VERSION: "3.24" CODEGEN_VERSION: "2.4.25" CODEGEN_NAME: "swagger-codegen-cli.jar" ARTIFACT_NAME: "vality-erlang-codegen-swagger-codegen-1.0.0.jar" @@ -39,13 +39,13 @@ jobs: java -cp codegen-cli/${{ env.ARTIFACT_NAME }}:codegen-cli/${{ env.CODEGEN_NAME }} io.swagger.codegen.SwaggerCodegen generate -l vality-erlang-server -i ${{ env.SPEC_PATH }} -o erlang-server - name: Upload server artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: erlang-server path: erlang-server - name: Upload client artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: erlang-client path: erlang-client @@ -55,12 +55,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Download code artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: erlang-client - name: Setup BEAM - uses: erlef/setup-beam@v1.15 + uses: erlef/setup-beam@v1.18.2 with: otp-version: ${{ env.OTP_VERSION }} rebar3-version: ${{ env.REBAR_VERSION }} @@ -76,12 +76,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Download code artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: erlang-server - name: Setup BEAM - uses: erlef/setup-beam@v1.15 + uses: erlef/setup-beam@v1.18.2 with: otp-version: ${{ env.OTP_VERSION }} rebar3-version: ${{ env.REBAR_VERSION }} diff --git a/src/main/resources/vality-erlang-client/rebar.config.mustache b/src/main/resources/vality-erlang-client/rebar.config.mustache index e93032d..6a77d1b 100644 --- a/src/main/resources/vality-erlang-client/rebar.config.mustache +++ b/src/main/resources/vality-erlang-client/rebar.config.mustache @@ -7,5 +7,10 @@ {hackney, "1.17.4"}, {jsx, "3.1.0"}, {parse_trans, "3.4.1"}, - {jesse, {git, "https://github.com/valitydev/jesse.git", {tag, "uptag_1.6.1-1"}}} + {jesse, {git, "https://github.com/valitydev/jesse.git", {tag, "uptag_1.6.1-2"}}} +]}. + +{project_plugins, [ + {rebar3_proper, "0.12.1"}, + {rebar3_lint, "3.2.6"} ]}. diff --git a/src/main/resources/vality-erlang-server/rebar.config.mustache b/src/main/resources/vality-erlang-server/rebar.config.mustache index 4adb4a2..7d4e31a 100644 --- a/src/main/resources/vality-erlang-server/rebar.config.mustache +++ b/src/main/resources/vality-erlang-server/rebar.config.mustache @@ -6,5 +6,10 @@ {email_validator, "1.1.0"}, {jsx, "3.1.0"}, {parse_trans, "3.4.1"}, - {jesse, {git, "https://github.com/valitydev/jesse.git", {tag, "uptag_1.6.1-1"}}} + {jesse, {git, "https://github.com/valitydev/jesse.git", {tag, "uptag_1.6.1-2"}}} +]}. + +{project_plugins, [ + {rebar3_proper, "0.12.1"}, + {rebar3_lint, "3.2.6"} ]}.