Fix snake_case
-> camelCase
#69
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: Rust | |
on: | |
push: | |
branches: [ "main" ] | |
tags: | |
- '*' | |
pull_request: | |
branches: [ "main" ] | |
create: | |
tags: | |
- '*' | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Format check | |
run: cargo fmt -- --check | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
run: | | |
cargo test --verbose | |
cargo test --verbose --features client | |
publish: | |
needs: build | |
if: startsWith(github.ref, 'refs/tags/') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Login to Crates.io | |
uses: actions-rs/cargo@v1 | |
with: | |
command: login | |
args: ${{ secrets.CRATES_IO_TOKEN }} | |
- name: Publish to Crates.io | |
uses: actions-rs/cargo@v1 | |
with: | |
command: publish | |
args: --package dap |