Update GitHub Actions dependencies #25
Workflow file for this run
This file contains 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
# Copyright (c) the JPEG XL Project Authors. All rights reserved. | |
# | |
# Use of this source code is governed by a BSD-style | |
# license that can be found in the LICENSE file. | |
# Workflow to run pull-requests specific checks. | |
name: PR | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: 1 | |
jobs: | |
# Run source tests: author list, copyright notice and merge conflicts. | |
authors: | |
runs-on: [ubuntu-latest] | |
steps: | |
- name: Checkout the source | |
uses: actions/checkout@v4 | |
- name: Check AUTHORS file | |
run: | |
./ci/pull_request_checks.sh | |
rust: | |
name: Test, Format and Clippy | |
runs-on: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install latest rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy, rustfmt | |
- name: Build artefact caching | |
uses: Swatinem/rust-cache@v2.7.3 | |
- name: Format | |
run: cargo fmt --all -- --check | |
- name: Clippy | |
run: cargo clippy --all-targets --all-features --tests --all -- -D warnings | |
- name: Run tests | |
run: cargo test --all --no-fail-fast |