Skip to content

Commit

Permalink
ci: rebar3 fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
qzhuyan committed Dec 19, 2023
1 parent 3af420a commit 40d04b6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/code-format.yaml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,28 @@ name: ci
on: [push, pull_request]

jobs:
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/[email protected]
with:
clang-format-version: '13'
check-path: 'c_src'
- name: Prepare OTP and rebar3
uses: erlef/setup-beam@v1
with:
otp-version: 26
rebar3-version: 3.20.0
- name: Run erlfmt for erlang code
run: |
rebar3 fmt -c
mac:
timeout-minutes: 60
needs: formatting-check
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -58,6 +78,7 @@ jobs:


linux:
needs: formatting-check
runs-on: ubuntu-22.04
timeout-minutes: 25
strategy:
Expand Down

0 comments on commit 40d04b6

Please sign in to comment.