Repository navigation
chore(licence): normalise to MPL-2.0 (code) + CC-BY-SA-4.0 (docs) (#63) #146
This file contains hidden or 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
| # SPDX-License-Identifier: MPL-2.0 | |
| name: E2E and Integration Tests | |
| on: | |
| push: {branches: [main]} | |
| pull_request: {branches: ['**']} | |
| permissions: | |
| contents: read | |
| jobs: | |
| e2e: | |
| name: E2E tests | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - name: Run E2E tests | |
| run: bash tests/e2e_test.sh | |
| integration: | |
| name: Integration tests | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@4be9e76fd7c4901c61fb841f559994984270fce7 # stable | |
| - name: Run integration tests | |
| run: | | |
| if [ -f "Cargo.toml" ]; then | |
| cargo test --test '*' 2>/dev/null || echo "No integration tests" | |
| fi | |
| if ls tests/integration/*.sh 2>/dev/null | head -1 | grep -q .; then | |
| for f in tests/integration/*.sh; do bash "$f"; done | |
| fi |