2256d38a68
Some checks are pending
Security audit / security_audit (push) Waiting to run
Conventional Commits / Conventional Commits (push) Waiting to run
/ Flake Checker (push) Waiting to run
/ Check Nix Flake (push) Waiting to run
/ Build Nix package (push) Waiting to run
Unit tests (BSD) / unit-tests-freebsd (push) Waiting to run
Unit tests (BSD) / unit-tests-netbsd (push) Waiting to run
Unit tests / unit-tests (macos-latest, 1.70.0) (push) Waiting to run
Unit tests / unit-tests (macos-latest, beta) (push) Waiting to run
Unit tests / unit-tests (macos-latest, nightly) (push) Waiting to run
Unit tests / unit-tests (macos-latest, stable) (push) Waiting to run
Unit tests / unit-tests (ubuntu-latest, 1.70.0) (push) Waiting to run
Unit tests / unit-tests (ubuntu-latest, beta) (push) Waiting to run
Unit tests / unit-tests (ubuntu-latest, nightly) (push) Waiting to run
Unit tests / unit-tests (ubuntu-latest, stable) (push) Waiting to run
Unit tests / unit-tests (windows-latest, 1.70.0) (push) Waiting to run
Unit tests / unit-tests (windows-latest, beta) (push) Waiting to run
Unit tests / unit-tests (windows-latest, nightly) (push) Waiting to run
Unit tests / unit-tests (windows-latest, stable) (push) Waiting to run
Unit tests (BSD) / unit-tests-openbsd (push) Waiting to run
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
97 lines
2.8 KiB
YAML
97 lines
2.8 KiB
YAML
# SPDX-FileCopyrightText: 2024 Christina Sørensen
|
|
#
|
|
# SPDX-License-Identifier: EUPL-1.2
|
|
|
|
name: Unit tests (BSD)
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- '.github/workflows/unit-tests-bsd.yml'
|
|
- 'src/**'
|
|
- 'Cargo.*'
|
|
- build.rs
|
|
pull_request:
|
|
branches: [main]
|
|
paths:
|
|
- '.github/workflows/unit-tests-bsd.yml'
|
|
- 'src/**'
|
|
- 'Cargo.*'
|
|
- build.rs
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
|
|
cancel-in-progress: true
|
|
jobs:
|
|
unit-tests-freebsd:
|
|
runs-on: ubuntu-22.04
|
|
timeout-minutes: 20
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
- name: Compile
|
|
uses: vmactions/freebsd-vm@v1
|
|
with:
|
|
release: '14.1'
|
|
usesh: true
|
|
prepare: |
|
|
pkg install -y rust git
|
|
cargo install cargo-hack
|
|
git config --global --add safe.directory /home/runner/work/eza/eza
|
|
run: |
|
|
set -e
|
|
export CARGO_TERM_COLOR="always"
|
|
export RUSTFLAGS="--deny warnings"
|
|
cargo fmt --check
|
|
cargo clippy -- -D warnings
|
|
cargo hack test
|
|
unit-tests-netbsd:
|
|
runs-on: ubuntu-22.04
|
|
timeout-minutes: 20
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
- name: Compile
|
|
uses: vmactions/netbsd-vm@v1
|
|
with:
|
|
release: '10.0'
|
|
usesh: true
|
|
prepare: |
|
|
PATH="/root/.cargo/bin:/usr/pkg/sbin:/usr/pkg/bin:$PATH"
|
|
PKG_PATH="https://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/10.0/All/"
|
|
export PATH PKG_PATH
|
|
/usr/sbin/pkg_add pkgin
|
|
pkgin -y install rust git
|
|
cargo install cargo-hack
|
|
git config --global --add safe.directory /home/runner/work/eza/eza
|
|
run: |
|
|
set -e
|
|
export CARGO_TERM_COLOR="always"
|
|
export RUSTFLAGS="--deny warnings"
|
|
cargo fmt --check
|
|
cargo clippy -- -D warnings
|
|
cargo hack test
|
|
unit-tests-openbsd:
|
|
runs-on: ubuntu-22.04
|
|
timeout-minutes: 20
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
- name: Compile
|
|
uses: vmactions/openbsd-vm@v1
|
|
with:
|
|
release: '7.4'
|
|
usesh: true
|
|
prepare: |
|
|
pkg_add rust rust-rustfmt rust-clippy git
|
|
cargo install cargo-hack
|
|
git config --global --add safe.directory /home/runner/work/eza/eza
|
|
run: |
|
|
set -e
|
|
export CARGO_TERM_COLOR="always"
|
|
export RUSTFLAGS="--deny warnings"
|
|
cargo fmt --check
|
|
cargo clippy -- -D warnings
|
|
cargo hack test
|