Validate Docker tags before build #4
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
| name: Rust | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build | |
| run: cargo build --release | |
| - name: Upload Binaries | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: FilesLink binaries | |
| path: | | |
| target/release/fileslink | |
| target/release/fileslink-cli | |
| test_main: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Download Binaries | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: FilesLink binaries | |
| - name: Run build for main | |
| run: cargo build --release | |
| - name: Run tests for main | |
| run: cargo test --release | |
| test_shared: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Download Binaries | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: FilesLink binaries | |
| - name: Run build for shared | |
| run: cargo build --manifest-path shared/Cargo.toml --release | |
| - name: Run tests for shared | |
| run: cargo test --manifest-path shared/Cargo.toml --release | |
| test_cli: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Download Binaries | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: FilesLink binaries | |
| - name: Run build for cli | |
| run: cargo build --manifest-path cli/Cargo.toml --release | |
| - name: Run tests for cli | |
| run: cargo test --manifest-path cli/Cargo.toml --release | |
| test_bot: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Download Binaries | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: FilesLink binaries | |
| - name: Run build for bot | |
| run: cargo build --manifest-path bot/Cargo.toml --release | |
| - name: Run tests for crate3 | |
| run: cargo test --manifest-path bot/Cargo.toml --release |