chore(deps): update actions/checkout action to v6.1.0 #617
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-FileCopyrightText: Copyright (C) 2026 Adaline Simonian | |
| # SPDX-License-Identifier: AGPL-3.0-or-later | |
| # | |
| # This file is part of Ordbok API. | |
| # | |
| # Ordbok API is free software: you can redistribute it and/or modify it under | |
| # the terms of the GNU Affero General Public License as published by the Free | |
| # Software Foundation, either version 3 of the License, or (at your option) any | |
| # later version. | |
| # | |
| # Ordbok API is distributed in the hope that it will be useful, but WITHOUT ANY | |
| # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR | |
| # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more | |
| # details. | |
| # | |
| # You should have received a copy of the GNU Affero General Public License | |
| # along with Ordbok API. If not, see <https://www.gnu.org/licenses/>. | |
| name: Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - "README.md" | |
| - "docker-compose.yml" | |
| - "*.ps1" | |
| - "*.sh" | |
| pull_request: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - "README.md" | |
| - "docker-compose.yml" | |
| - "*.ps1" | |
| - "*.sh" | |
| merge_group: | |
| concurrency: | |
| group: ${{ github.event_name }}-${{ github.event.number || github.run_id }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-and-test: | |
| name: Build and Test | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| target: x86_64-unknown-linux-gnu | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 | |
| - name: Set up Rust | |
| uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1.17.0 | |
| with: | |
| target: ${{ matrix.target }} | |
| components: rustfmt, clippy | |
| rustflags: "" | |
| - name: Setup UV | |
| uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2 | |
| - name: Build | |
| run: cargo build --all-features --release --target ${{ matrix.target }} | |
| - name: Check formatting | |
| run: cargo fmt -- --check | |
| - name: Check clippy | |
| shell: bash | |
| run: | | |
| cargo clippy --release --all-targets --all-features -- \ | |
| -D clippy::all -D clippy::pedantic -D clippy::nursery \ | |
| -A clippy::missing_errors_doc -A clippy::missing_panics_doc \ | |
| -A clippy::doc_markdown -A clippy::module_name_repetitions \ | |
| -D warnings | |
| - name: Run tests | |
| run: cargo test --release --all-features --target ${{ matrix.target }} | |
| - name: Lint licences | |
| run: uvx reuse lint |