CI #276
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
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
schedule: # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onschedule | |
- cron: '0 0 * * 0' # at midnight of each sunday | |
workflow_dispatch: | |
name: CI | |
jobs: | |
develop: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
toolchain: | |
- 1.70.0 # MSRV | |
- stable | |
- nightly | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
components: rustfmt, clippy | |
- uses: taiki-e/install-action@v2 | |
with: | |
tool: just | |
- run: cargo fmt --all -- --check | |
- run: cargo clippy -- -D warnings | |
- run: cargo test --all-features | |
- run: | | |
just codegen | |
./scripts/assert-unchanged.sh | |
- run: cargo install --path crates/s3s-fs --features binary | |
cross-test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
toolchain: | |
- stable | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
- run: cargo test --all-features | |
mint: | |
name: e2e (s3s-proxy, mint) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: nightly | |
- run: docker pull minio/mint:edge | |
- run: docker pull minio/minio:latest | |
- run: cargo install --path crates/s3s-proxy | |
- run: ./scripts/e2e-mint.sh | |
- run: ./scripts/report-mint.py /tmp/mint/log.json |