Rewrite CI and replace archived dependencies #3
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: Real test | |
on: | |
push: | |
branches: | |
- master | |
- ci-test | |
workflow_dispatch: | |
permissions: | |
contents: read | |
env: | |
RUST_BACKTRACE: full | |
jobs: | |
test: | |
name: Real test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Rust stable | |
uses: dtolnay/rust-toolchain@stable | |
- name: Build | |
run: | | |
cd onedrive-api-test | |
cargo test --no-run | |
- name: Test | |
env: | |
ONEDRIVE_API_TEST_CLIENT_ID: ${{ secrets.ONEDRIVE_API_TEST_CLIENT_ID }} | |
ONEDRIVE_API_TEST_REDIRECT_URI: ${{ secrets.ONEDRIVE_API_TEST_REDIRECT_URI }} | |
ONEDRIVE_API_TEST_REFRESH_TOKEN: ${{ secrets.ONEDRIVE_API_TEST_REFRESH_TOKEN }} | |
run: | | |
cd onedrive-api-test | |
cargo test -- --include-ignored |