From d5c19a901f200276063991314cb4864ea1336af6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BC=D1=98=D0=B0=D0=BD=20=D0=93=D0=B5=D0=BE?= =?UTF-8?q?=D1=80=D0=B3=D0=B8=D0=B5=D0=B2=D1=81=D0=BA=D0=B8?= Date: Fri, 17 May 2024 18:49:41 +0200 Subject: [PATCH] update checkout action to v4 --- .github/workflows/build.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b5145a2..1193c1f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,9 @@ name: build test lint -on: [push] +on: + push: + branches: [main] + pull_request: jobs: build: @@ -13,22 +16,22 @@ jobs: - rust: nightly steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: actions-rs/toolchain@v1 with: toolchain: ${{ matrix.rust }} - - name: build + - name: Build uses: actions-rs/cargo@v1 with: command: build - - name: test + - name: Test uses: actions-rs/cargo@v1 with: command: test - - name: lint + - name: Annotate commit with clippy warnings uses: actions-rs/clippy-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }}