mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-10-03 10:13:34 +10:00
* Update actions/checkout consistently to v7 * Update pnpm/action-setup to v6 With pnpm v11 this could and should be replaced with pnpm/setup, I guess. * Update actions/setup-node consistently to v7 * Update actions/configure-pages to v6 It looks like this should be non-critical, it mainly includes a runtime upgrade to Node 24 as far as I could see that. * Update actions/cache to v6 * Update docker/metadata-action to v6 I think this is also non-critical and mainly a runtime bump. * Update docker/login-action to v4 Should also be just the node version bump. * Update docker/setup-buildx-action to v4 * Update docker/setup-qemu-action to v4 * Update docker/build-push-action to v7 * Update actions/upload-artifact to v7 * Update actions/download-artifact to v8 This is quite a jump and I'm not very familiar with this action. But the changelogs looked more or less not critical, there was only a thing about downloading single artifacts by id in v5, but I think the "No Action Needed If" applies.
57 lines
1.3 KiB
YAML
57 lines
1.3 KiB
YAML
name: Droplet CI
|
|
|
|
on:
|
|
push:
|
|
branches: [develop]
|
|
paths:
|
|
- "libraries/droplet/**"
|
|
- "libraries/droplet_types/**"
|
|
- "libraries/libarchive/**"
|
|
- ".github/workflows/droplet-ci.yml"
|
|
pull_request:
|
|
branches: [develop]
|
|
paths:
|
|
- "libraries/droplet/**"
|
|
- "libraries/droplet_types/**"
|
|
- "libraries/libarchive/**"
|
|
- ".github/workflows/droplet-ci.yml"
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
ci:
|
|
name: Build, Test, Lint
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: libraries/droplet
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Install Rust toolchain
|
|
uses: dtolnay/rust-toolchain@nightly
|
|
with:
|
|
components: rustfmt, clippy
|
|
|
|
- name: Rust cache
|
|
uses: swatinem/rust-cache@v2
|
|
with:
|
|
workspaces: "./libraries/droplet -> target"
|
|
|
|
- name: Install libarchive
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y libarchive-dev
|
|
|
|
- name: Check formatting
|
|
run: cargo fmt --all -- --check
|
|
|
|
- name: Run Clippy (lint)
|
|
run: cargo clippy --all-targets --all-features -- -D warnings
|
|
|
|
- name: Run tests
|
|
run: cargo test --all-features --all --verbose
|