Skip to content

fix: Seperate workflows into seperate jobs #19

fix: Seperate workflows into seperate jobs

fix: Seperate workflows into seperate jobs #19

Workflow file for this run

name: Cargo Build & Test

Check failure on line 1 in .github/workflows/build_test.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build_test.yaml

Invalid workflow file

(Line: 43, Col: 7): A sequence was not expected, (Line: 46, Col: 7): Unexpected value 'run', (Line: 45, Col: 7): Required property is missing: runs-on, (Line: 48, Col: 7): A sequence was not expected
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
cache:
name: etcd_fdw Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache build/deps
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Cache pgrx
uses: actions/cache@v4
with:
path: |
~/.pgrx/
key: pgrx-0.16.0
install_toolchain:
name: Install latest stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
install_dependencies:
- run: sudo apt install build-essential bison flex clang protobuf-compiler libreadline8 libreadline-dev -y
install_cargo_pgrx:
continue-on-error: true
run: cargo install cargo-pgrx --version 0.16.0 --locked
build_and_test:
- run: cargo pgrx init
- run: cargo build --verbose
- run: cargo test --verbose
- run: cargo pgrx test --verbose