|
@@ -1,50 +1,46 @@
|
|
|
name: Unit tests (BSD)
|
|
name: Unit tests (BSD)
|
|
|
-
|
|
|
|
|
on:
|
|
on:
|
|
|
push:
|
|
push:
|
|
|
- branches: [ main ]
|
|
|
|
|
|
|
+ branches: [main]
|
|
|
paths:
|
|
paths:
|
|
|
- '.github/workflows/unit-tests-bsd.yml'
|
|
- '.github/workflows/unit-tests-bsd.yml'
|
|
|
- 'src/**'
|
|
- 'src/**'
|
|
|
- 'Cargo.*'
|
|
- 'Cargo.*'
|
|
|
- build.rs
|
|
- build.rs
|
|
|
pull_request:
|
|
pull_request:
|
|
|
- branches: [ main ]
|
|
|
|
|
|
|
+ branches: [main]
|
|
|
paths:
|
|
paths:
|
|
|
- '.github/workflows/unit-tests-bsd.yml'
|
|
- '.github/workflows/unit-tests-bsd.yml'
|
|
|
- 'src/**'
|
|
- 'src/**'
|
|
|
- 'Cargo.*'
|
|
- 'Cargo.*'
|
|
|
- build.rs
|
|
- build.rs
|
|
|
-
|
|
|
|
|
concurrency:
|
|
concurrency:
|
|
|
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
|
|
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
|
|
|
cancel-in-progress: true
|
|
cancel-in-progress: true
|
|
|
-
|
|
|
|
|
jobs:
|
|
jobs:
|
|
|
unit-tests-freebsd:
|
|
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
|
|
|
|
|
-
|
|
|
|
|
|
|
+ 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:
|
|
unit-tests-netbsd:
|
|
|
runs-on: ubuntu-22.04
|
|
runs-on: ubuntu-22.04
|
|
|
timeout-minutes: 20
|
|
timeout-minutes: 20
|
|
@@ -72,27 +68,26 @@ jobs:
|
|
|
cargo fmt --check
|
|
cargo fmt --check
|
|
|
cargo clippy -- -D warnings
|
|
cargo clippy -- -D warnings
|
|
|
cargo hack test
|
|
cargo hack test
|
|
|
-
|
|
|
|
|
unit-tests-openbsd:
|
|
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
|
|
|
|
|
|
|
+ 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
|