Skip to content

Commit

Permalink
fixup! ci: unify into single job
Browse files Browse the repository at this point in the history
  • Loading branch information
torkelrogstad committed Oct 4, 2024
1 parent 1f99bdc commit 7b37da6
Showing 1 changed file with 31 additions and 19 deletions.
50 changes: 31 additions & 19 deletions .github/workflows/check_lint_build_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,37 @@ env:
CARGO_TERM_COLOR: always

jobs:
check-lint-build-release:
check-lint:
name: Check, Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-rust@v4

- name: Install buf
uses: bufbuild/buf-action@v1
with:
setup_only: true

- name: run protolint
uses: plexsystems/protolint-action@v0.7.0
with:
configDirectory: .
srcDirectory: proto

- name: Install buf
uses: bufbuild/buf-action@v1
with:
setup_only: true

# Disabled, since buf format is not configurable
#- name: Buf format
# run: buf format -d --exit-code

- name: Buf lint
run: buf lint --error-format github-actions

build-release:
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -34,24 +64,6 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: run protolint
uses: plexsystems/protolint-action@v0.7.0
with:
configDirectory: .
srcDirectory: proto

- name: Install buf
uses: bufbuild/buf-action@v1
with:
setup_only: true

# Disabled, since buf format is not configurable
#- name: Buf format
# run: buf format -d --exit-code

- name: Buf lint
run: buf lint --error-format github-actions

- name: Install latest stable toolchain
uses: dtolnay/rust-toolchain@master
with:
Expand Down

0 comments on commit 7b37da6

Please sign in to comment.