chore(deps): update erlef/setup-beam action to v1.24.0 #328
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: ci | |
| permissions: | |
| contents: write | |
| on: | |
| # for feature branches and releases | |
| push: | |
| concurrency: | |
| group: ${{ (github.ref != 'refs/heads/main') && format('{0}-{1}', github.ref, github.workflow) || github.run_id }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
| jobs: | |
| build: | |
| if: github.ref != 'refs/heads/main' | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{secrets.GITHUB_TOKEN}} | |
| - uses: erlef/setup-beam@fc68ffb90438ef2936bbb3251622353b3dcb2f93 # v1.24.0 | |
| with: | |
| otp-version: 27.3.3 | |
| rebar3-version: 3.24.0 | |
| - name: Run Linter π§ | |
| shell: bash | |
| run: make lint | |
| - name: Configure git π§ | |
| run: | | |
| git config --global url."https://${{ secrets.KIVRABOT }}@github.com/kivra/".insteadOf "git@github.com:kivra/" | |
| git config --global url."https://${{ secrets.KIVRABOT }}@github.com/kivra".insteadOf "https://github.com/kivra" | |
| - name: Run Erlang Tests ππΎ | |
| shell: bash | |
| run: | | |
| # Since we can't force CI to run after pushing rebar.lock | |
| # we remove it to make sure we test over rebar.config | |
| rm -f rebar.lock | |
| make test-erl | |
| - name: Run Go Tests ππ½ββοΈ | |
| shell: bash | |
| run: make test-go | |
| - name: Run python Tests ππΎ | |
| shell: bash | |
| run: make test-python | |
| # The result of the following step can't be completely automated, it seems, | |
| # since the 'git push' prevents the workflow's status from being reported | |
| # In this case, we need to analyze the results of the previous | |
| # 'Run Erlang Tests' step, and, when Ok, force- merge it! | |
| - run: | | |
| if [[ "${REF}" =~ refs/heads/renovate/.* ]]; then | |
| echo "βΉοΈ This appears to come from a Renovate PR. Trying rebar.lock update..." | |
| ORIGIN="origin/${{ github.event.repository.default_branch }}" | |
| if ! git diff --quiet --exit-code "${ORIGIN}"..HEAD -- rebar.config; then | |
| rebar3 upgrade --all | |
| CHECK_FILE=rebar.lock | |
| if ! git diff --quiet --exit-code "${CHECK_FILE}"; then | |
| # there's stuff to push | |
| git config user.name "Renovate Bot" | |
| git config user.email "bot@renovateapp.com" | |
| git add "${CHECK_FILE}" | |
| git commit -m "auto-update(deps): Changes in ${CHECK_FILE}" | |
| git push origin HEAD:"${REF}" | |
| fi | |
| fi | |
| fi | |
| env: | |
| REF: ${{ github.ref }} | |
| GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
| release: | |
| if: github.ref == 'refs/heads/main' && startsWith(github.event.head_commit.message, 'no-release') == false | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{secrets.GITHUB_TOKEN}} | |
| - name: Bump version and push tag | |
| id: tag-version | |
| uses: mathieudutour/github-tag-action@a22cf08638b34d5badda920f9daf6e72c477b07b # v6.2 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| dry_run: true | |
| release_branches: main | |
| - name: Create a GitHub release | |
| run: | | |
| if ! command -v gh >/dev/null 2>&1; then | |
| curl -sS https://webi.sh/gh | sh | |
| fi | |
| gh release create ${{ steps.tag-version.outputs.new_tag }} --generate-notes --latest | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |