Skip to content

chore: update dependencies #80

chore: update dependencies

chore: update dependencies #80

Workflow file for this run

on:
push:
branches:
- master
pull_request:
branches:
- master
name: Test
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout
- uses: dtolnay/rust-toolchain@stable
name: Setup Cargo Toolchain
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
name: Rust Cache
- name: Check Code Format
run: cargo fmt -- --check
- name: Run Clippy Lints
run: cargo clippy --workspace --all-targets --all-features --tests
test-prop:
name: Test (proptest)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Cargo Toolchain
uses: dtolnay/rust-toolchain@stable
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'liberica'
java-version: '17'
java-package: 'jre'
- uses: Swatinem/rust-cache@v2
name: Rust Cache
- name: Install nextest
uses: taiki-e/install-action@nextest
- name: Install just
uses: taiki-e/install-action@just
- name: Running Tests
run: just test-prop-all
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Setup Cargo Toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
name: Rust Cache
- name: Install nextest
uses: taiki-e/install-action@nextest
- name: Install just
uses: taiki-e/install-action@just
- name: Install sqlx-cli
uses: taiki-e/install-action@v2
with:
tool: sqlx-cli
- name: Build postgres image
uses: docker/build-push-action@v4
with:
context: postgres
load: true
tags: postgres-rsync-sjtug
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Start postgres
run: |
docker run -d --rm --name postgres -p 5432:5432 \
-v $PWD/postgres/postgresql.conf:/etc/postgresql/postgresql.conf:ro \
-v $PWD/postgres/data:/var/lib/postgresql/data \
-e POSTGRES_PASSWORD=postgres \
postgres-rsync-sjtug
- name: Wait for postgres
run: |
until docker exec postgres pg_isready --username=rsync-sjtug; do
sleep 1
done
- name: Check .sqlx files
run: cargo sqlx prepare --check --workspace -- --tests
env:
DATABASE_URL: postgresql://rsync-sjtug:postgres@localhost:5432/rsync-sjtug
- name: Running Tests
run: just test-all
env:
DATABASE_URL: postgresql://rsync-sjtug:postgres@localhost:5432/rsync-sjtug