diff --git a/.github/workflows/bvt.yaml b/.github/workflows/bvt.yaml index b2bb741..be20c97 100644 --- a/.github/workflows/bvt.yaml +++ b/.github/workflows/bvt.yaml @@ -1,20 +1,22 @@ name: BVT on: [pull_request] +env: + RUST_VERSION: 1.52 jobs: build: name: Build runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Build - run: make debug + - uses: actions/checkout@v2 + - run: rustup install ${{ env.RUST_VERSION }} && rustup default ${{ env.RUST_VERSION }} + - run: make debug fmt: name: Format Check runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - run: rustup install ${{ env.RUST_VERSION }} && rustup default ${{ env.RUST_VERSION }} - run: rustup component add rustfmt - run: make fmt clippy: @@ -22,6 +24,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - run: rustup install ${{ env.RUST_VERSION }} && rustup default ${{ env.RUST_VERSION }} - run: rustup component add clippy - run: make clippy test: @@ -29,6 +32,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - run: rustup install ${{ env.RUST_VERSION }} && rustup default ${{ env.RUST_VERSION }} - run: make test diff --git a/.github/workflows/commit-message-check.yaml b/.github/workflows/commit-message-check.yaml index 4d1c57e..2919fd5 100644 --- a/.github/workflows/commit-message-check.yaml +++ b/.github/workflows/commit-message-check.yaml @@ -48,6 +48,6 @@ jobs: uses: tim-actions/commit-message-checker-with-regex@v0.3.1 with: commits: ${{ steps.get-pr-commits.outputs.commits }} - pattern: '^.+(\n.{0,72})*$|^.+\n\s*[^a-zA-Z\s\n]|^.+\n\S+$' + pattern: '^.+(\n([a-zA-Z].{0,149}|[^a-zA-Z\n].*|Signed-off-by:.*|))+$' error: 'Body line too long (max 72)' post_error: ${{ env.error_msg }}