ci: make sure clippy passes before running tests (#5253)

* ci: make sure clippy passes before running tests

* ci: do not run ci on main branch
This commit is contained in:
Ning Sun
2024-12-30 15:01:15 +08:00
committed by GitHub
parent 109fe04d17
commit 1287d4cb9f
2 changed files with 2 additions and 12 deletions

View File

@@ -10,17 +10,6 @@ on:
- 'docker/**'
- '.gitignore'
- 'grafana/**'
push:
branches:
- main
paths-ignore:
- 'docs/**'
- 'config/**'
- '**.md'
- '.dockerignore'
- 'docker/**'
- '.gitignore'
- 'grafana/**'
workflow_dispatch:
name: CI
@@ -653,6 +642,7 @@ jobs:
if: github.event.pull_request.draft == false
runs-on: ubuntu-20.04-8-cores
timeout-minutes: 60
needs: [clippy, fmt]
steps:
- uses: actions/checkout@v4
- uses: arduino/setup-protoc@v3