Update pg_later_ext.yml #479
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |