Fix bug in index title #194
This file contains 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 | |
env: | |
DATABASE_URL: "sqlite://data/db.sqlite3" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install just | |
run: | | |
curl --location https://github.com/casey/just/releases/download/1.13.0/just-1.13.0-x86_64-unknown-linux-musl.tar.gz \ | |
--output /tmp/just-1.13.0-x86_64-unknown-linux-musl.tar.gz &&\ | |
echo "f76fce93a71686f6aa6b2db1a39184e736f9ac8248c0489e003c617b49eb2676 /tmp/just-1.13.0-x86_64-unknown-linux-musl.tar.gz" | sha256sum -c &&\ | |
mkdir /tmp/just &&\ | |
tar --directory=/tmp/just -xvf /tmp/just-1.13.0-x86_64-unknown-linux-musl.tar.gz &&\ | |
cp /tmp/just/just /usr/local/bin | |
- name: Install npm dependencies | |
run: npm install | |
- name: Build tailwind assets | |
run: just tailwind | |
- name: Run database migrations for sqlx | |
run: cargo run -p migrations | |
- name: Build | |
run: cargo build | |
- name: Run tests | |
run: cargo test --all |