fix: skip enum variants without validations in generated error type #89
Workflow file for this run
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: Website | |
| on: | |
| pull_request: {} | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| book-test: | |
| name: Test Book | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Rust toolchain | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| - name: Install Cargo Binary Install | |
| uses: cargo-bins/cargo-binstall@main | |
| - name: Install mdBook | |
| run: cargo binstall --force -y mdbook mdbook-tabs | |
| - name: Clean dependencies | |
| run: cargo clean -p fortifier -p regex | |
| - name: Build dependencies | |
| run: cargo build -p fortifier --features all-validations -p regex | |
| - name: Run tests | |
| run: mdbook test -L ../target/debug/deps | |
| working-directory: book | |
| book-build: | |
| name: Build Book | |
| needs: book-test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Rust toolchain | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| - name: Install Cargo Binary Install | |
| uses: cargo-bins/cargo-binstall@main | |
| - name: Install mdBook | |
| run: cargo binstall --force -y mdbook mdbook-tabs | |
| - name: Install Node.js dependencies | |
| run: npm install | |
| - name: Build Book | |
| run: mdbook build | |
| working-directory: book | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: book | |
| path: book/book | |
| retention-days: 1 | |
| if-no-files-found: error | |
| deploy: | |
| name: Deploy | |
| needs: book-build | |
| if: github.ref == 'refs/heads/main' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Download artifacts | |
| uses: actions/download-artifact@v6 | |
| with: | |
| path: dist | |
| merge-multiple: true | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: dist | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |