Skip to content

feat(back): automatically apply migrations on app start; (#72) #14

feat(back): automatically apply migrations on app start; (#72)

feat(back): automatically apply migrations on app start; (#72) #14

name: Build & Deploy
on:
push:
branches:
- 'main'
jobs:
check:
name: Check code
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up dependencies
run: sudo apt-get update && sudo apt-get install -y libgtk-3-dev javascriptcoregtk-4.1 libsoup-3.0 webkit2gtk-4.1
- name: 'Add nightly channel'
run: 'rustup toolchain install nightly'
- name: 'Add nightly fmt'
run: 'rustup component add rustfmt --toolchain nightly-x86_64-unknown-linux-gnu'
- name: 'Fmt'
run: 'cd dataans && cargo +nightly fmt --all -- --check'
- name: 'Clippy'
run: 'cd dataans && cargo clippy --all-targets --workspace -- -D warnings'
- name: 'Tests'
run: 'cd dataans && cargo test --workspace'
# Some day I'll set up cross platform (matrix) app build with proper artifacts.
# But currently I don't need it :)
# deploy:
# name: Build app
# runs-on: ubuntu-latest
# needs: check
# permissions:
# contents: 'read'
# id-token: 'write'
# steps:
# - name: Checkout
# uses: actions/checkout@v4