Add embed section to readme #187
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: CI | |
on: | |
pull_request: | |
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.86.0 | |
components: clippy, rustfmt | |
- name: Install Tailwind CSS | |
run: | | |
wget -O /usr/local/bin/tailwindcss https://github.com/tailwindlabs/tailwindcss/releases/download/v4.0.17/tailwindcss-linux-x64 | |
chmod +x /usr/local/bin/tailwindcss | |
- 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.4 | |
- name: Run djlint | |
run: | | |
djlint \ | |
--reformat \ | |
--configuration gitjobs-server/templates/.djlintrc \ | |
gitjobs-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 gitjobs-server/static/js/**/*.js --config gitjobs-server/static/js/.prettierrc.yaml | |