update checkout action to v4

This commit is contained in:
Дамјан Георгиевски 2024-05-17 18:49:41 +02:00
parent 97d01abfc6
commit d5c19a901f
No known key found for this signature in database

View file

@ -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 }}