request-mirror/.github/workflows/rust.yml

27 lines
501 B
YAML

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- name: Install Packages
run: apt update && apt upgrade -y && apt install libpq-dev -y
- name: Update to Nightly
run: rustup update nightly && rustup default nightly
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose