Skip to content

Bump thiserror from 1.0.43 to 1.0.50 #55

Bump thiserror from 1.0.43 to 1.0.50

Bump thiserror from 1.0.43 to 1.0.50 #55

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
tags:
- '**'
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Rust
uses: hecrj/setup-rust-action@v1
- name: Build
run: cargo build
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Rust
uses: hecrj/setup-rust-action@v1
with:
components: clippy
- run: cargo clippy --all-targets -- -D clippy::all
test:
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable, beta, nightly]
steps:
- uses: actions/checkout@v3
- name: Set up Rust
uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
- name: Run tests
run: cargo test
publish:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v3
- name: Set up Rust
uses: hecrj/setup-rust-action@v1
- name: Package
run: cargo package
- name: Publish
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
run: cargo publish --token $CRATES_TOKEN