Support rotating accounts wiht multiple admins #187
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: Rust CI | |
on: | |
pull_request: | |
types: [ opened, synchronize, edited ] | |
paths: | |
- 'tuta-sdk/**' | |
- '.github/workflows/tuta-sdk-test.yml' | |
push: | |
branches: | |
- dev-* | |
- '*/dev' | |
env: | |
RUSTFLAGS: "--cfg ci" # turns off some integration tests that need a server to pass | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
permissions: | |
actions: none | |
checks: none | |
contents: read | |
deployments: none | |
id-token: none | |
issues: none | |
discussions: none | |
packages: none | |
pages: none | |
pull-requests: none | |
repository-projects: none | |
security-events: none | |
statuses: none | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1 | |
- uses: ./.github/shared/setup-rust | |
- name: sdk format | |
working-directory: tuta-sdk/rust | |
run: cargo fmt --check | |
- name: sdk warning check with clippy | |
working-directory: tuta-sdk/rust | |
run: cargo clippy --package tuta-sdk --no-deps -- -Dwarnings # -Dwarnings changes warnings to errors so that the check fails | |
- name: sdk tests | |
working-directory: tuta-sdk/rust | |
run: cargo test |