Do nos add popover to calendar when pophover html is empty #25
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: CI | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| lint-and-test-server: | |
| runs-on: | |
| labels: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: 1.83.0 | |
| components: clippy, rustfmt | |
| - name: Run clippy | |
| run: cargo clippy --all-targets --all-features -- --deny warnings | |
| - name: Run rustfmt | |
| run: cargo fmt --all -- --check | |
| - name: Run tests | |
| run: cargo test | |
| lint-templates: | |
| runs-on: | |
| labels: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install djlint | |
| run: pip install djlint==1.36.3 | |
| - name: Run djlint | |
| run: | | |
| djlint \ | |
| --reformat \ | |
| --configuration ocg-server/templates/.djlintrc \ | |
| ocg-server/templates | |
| check-js-files-format: | |
| runs-on: | |
| labels: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Run prettier | |
| uses: creyD/[email protected] | |
| with: | |
| dry: true | |
| prettier_options: --check ocg-server/static/js/**/*.js --config ocg-server/static/js/.prettierrc.yaml | |