Skip to content

Bump reqwest from 0.11.24 to 0.12.4 #42

Bump reqwest from 0.11.24 to 0.12.4

Bump reqwest from 0.11.24 to 0.12.4 #42

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
tags: [ "release/v*" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build
- name: Run tests
run: cargo test
test_write:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --features="write"
- name: Run tests
run: cargo test --features="write"
- name: Lint
uses: giraffate/clippy-action@v1
- name: Cargo check
run: cargo check
examples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --examples
publish:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/release/v')
needs: [test, test_write]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Authenticate
run: cargo login ${{ secrets.CARGO_PUBLISH_TOKEN }}
- name: Publish
run: cargo publish