Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

rust 1.40.0

rust 1.40.0 #12

Workflow file for this run

name: Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
formatting:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Ensure rustfmt is installed and setup problem matcher
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.40.0
components: rustfmt
- name: Rustfmt Check
uses: actions-rust-lang/rustfmt@v1
test:
name: tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.40.0
- run: cargo build
- run: ./tests/run.sh --keep-database --diff
env:
PGQL_DB_HOST: 127.0.0.1
PGQL_DB_USER: postgres
PGQL_DB_PASSWORD: postgres
PGQL_DB_NAME: postgres
services:
postgres:
image: postgres:12
env:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
clippy:
name: cargo clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.40.0
components: clippy
- run: cargo clippy