Skip to content

Update pg_later_ext.yml #479

Update pg_later_ext.yml

Update pg_later_ext.yml #479

Workflow file for this run

name: CoreDB CLI workflow
defaults:
run:
shell: bash
working-directory: ./coredb-cli/
on:
pull_request:
branches:
- main
paths:
- '.github/workflows/cli.yml'
- 'coredb-cli/**'
# Always run tests on main or release branches
push:
branches:
- main
- 'release/[0-9]+.[0-9]+'
jobs:
lint:
name: Run linters
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install minimal nightly with clippy and rustfmt
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
with:
prefix-key: "coredb-cli-lint"
workspaces: |
coredb-cli
- name: Cargo format
run: cargo +nightly fmt --check
- name: Clippy
run: cargo clippy
test:
name: Run tests
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
with:
prefix-key: "coredb-cli-test"
workspaces: |
coredb-cli
- name: Run tests
run: cargo test