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 #4

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: ./tests/run.sh
env:
PGQL_DB_HOST: postgres
PGQL_DB_USER: postgres
PGQL_DB_PASSWORD: postgres
PGQL_DB_NAME: travis_ci_test
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
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
component: clippy
- run: cargo clippy