mirror of
https://github.com/mgree/ffs.git
synced 2024-10-26 20:09:03 +03:00
94917eda25
Adds support for YAML using [yaml_rust](https://crates.io/crates/yaml-rust). Some compromises due to YAML funniness: compound keys will be treated as their hashes.
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
name: Main workflow
|
|
|
|
on:
|
|
- pull_request
|
|
- push
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os:
|
|
- macos-latest
|
|
- ubuntu-latest
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- name: Install FUSE
|
|
run: |
|
|
if [ "$RUNNER_OS" = "Linux" ]; then
|
|
sudo apt-get install fuse libfuse-dev pkg-config
|
|
elif [ "$RUNNER_OS" = "macOS" ]; then
|
|
brew install macfuse pkg-config
|
|
else
|
|
echo Unsupported RUNNER_OS=$RUNNER_OS
|
|
exit 1
|
|
fi
|
|
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Build ffs and run unit tests
|
|
run: |
|
|
cargo build --verbose --all
|
|
cargo test
|
|
|
|
- name: Integration tests
|
|
run: |
|
|
PATH="$(pwd)/target/debug:$PATH"
|
|
RUST_LOG="ffs=info"
|
|
export RUST_LOG
|
|
cd tests
|
|
for test in *.sh
|
|
do
|
|
echo ========== RUNNING TEST: $(basename ${test%*.sh})
|
|
./${test} || exit 1
|
|
done
|
|
|