Update README.md #1098
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
name: Test project | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: 1 | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
run: rustup update stable | |
- name: Set up user environment on macOS | |
run: | | |
mkdir -p $HOME/Downloads | |
mkdir -p $HOME/Desktop | |
mkdir -p $HOME/Documents | |
echo "XDG_DOWNLOAD_DIR=$HOME/Downloads" >> $GITHUB_ENV | |
echo "XDG_DESKTOP_DIR=$HOME/Desktop" >> $GITHUB_ENV | |
echo "XDG_DOCUMENTS_DIR=$HOME/Documents" >> $GITHUB_ENV | |
echo "HOME_DIR set to $HOME" | |
ls -la $HOME # Verify the user directories | |
- name: Build | |
run: cargo build --verbose --release | |
- name: Run tests | |
run: cargo test --verbose --release | |
env: | |
IGNORE_PANICS: true |