Skip to content

Commit

Permalink
Update dependencies and configs
Browse files Browse the repository at this point in the history
  • Loading branch information
uklotzde committed Aug 6, 2023
1 parent f38f40b commit 7805522
Show file tree
Hide file tree
Showing 8 changed files with 120 additions and 110 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,22 @@

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow

name: continuous-integration
name: build-and-test

on:
pull_request:
push:
branches:
- main
workflow_dispatch:

env:
CARGO_INCREMENTAL: 0
CARGO_TERM_COLOR: always
RUST_BACKTRACE: short

jobs:
continuous-integration:
name: Building project and running tests
run:
runs-on: ubuntu-latest

steps:
Expand All @@ -33,8 +34,8 @@ jobs:
- name: Cache Rust toolchain and build artifacts
uses: Swatinem/rust-cache@v2
with:
# Distinguished by the action name to avoid sharing across different actions!
shared-key: "continuous-integration"
# The cache should not be shared between different workflows and jobs.
shared-key: ${{ github.workflow }}-${{ github.job }}

- name: Build tests with default features disabled
run: cargo test --workspace --locked --no-default-features --no-run
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ on:
push:
branches:
- "*"
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
pre-commit:
name: Detecting code style issues
run:
runs-on: ubuntu-latest

steps:
- name: Setup Python
uses: actions/setup-python@v4
Expand All @@ -36,8 +37,8 @@ jobs:
- name: Cache Rust toolchain and build artifacts
uses: Swatinem/rust-cache@v2
with:
# Distinguished by the action name to avoid sharing across different actions!
shared-key: "pre-commit"
# The cache should not be shared between different workflows and jobs.
shared-key: ${{ github.workflow }}-${{ github.job }}

- name: Detect code style issues (push)
uses: pre-commit/[email protected]
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/security-audit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ on:
# - cron: '0 0 * * *'
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
security-audit:
run:
runs-on: ubuntu-latest

steps:
# TODO: Remove manual installation of toolchain after
# https://github.com/actions-rs/audit-check/issues/215
Expand All @@ -31,7 +35,7 @@ jobs:
uses: Swatinem/rust-cache@v2
with:
# Distinguished by the action name to avoid sharing across different actions!
shared-key: "security-audit"
shared-key: ${{ github.workflow }}-${{ github.job }}

- name: Run security audit
run: cargo audit --deny unsound --deny yanked
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ repos:
- id: codespell
args: [--ignore-words=.codespellignore]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.9-for-vscode
rev: v3.0.1
hooks:
- id: prettier
types_or:
- markdown
- yaml
# https://reuse.software
- repo: https://github.com/fsfe/reuse-tool
rev: v1.1.2
rev: v2.1.0
hooks:
- id: reuse
- repo: https://github.com/doublify/pre-commit-rust
Expand Down
5 changes: 5 additions & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ overrides:
tabWidth: 2
# in double quotes you can use escapes
singleQuote: false
- files:
- "**/*.md"
options:
printWidth: 100
proseWrap: always
14 changes: 7 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,18 @@

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.5.0] - 2022-11-24

- Add `as_ref()` to `Validated`

### BREAKING CHANGES

- As `Validated` now has an inherent `as_ref()` method, code that
used to call `AsRef::as_ref` on it may now behave differently.
`AsRef` impl is still available and can be called explicitly,
or simply use `Deref` instead.
- As `Validated` now has an inherent `as_ref()` method, code that used to call `AsRef::as_ref` on it
may now behave differently. `AsRef` impl is still available and can be called explicitly, or
simply use `Deref` instead.

## [0.4.1] - 2022-10-21

Expand All @@ -30,7 +29,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [0.3.0] - 2022-04-14

- Tag validated values by wrapping them into `Validated`
- Rename `semval::Result` into `semval::ValidationResult` for disambiguation and consistency with `prelude`.
- Rename `semval::Result` into `semval::ValidationResult` for disambiguation and consistency with
`prelude`.

## [0.2.0] - 2022-01-29

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ categories = ["no-std", "rust-patterns"]
edition = "2021"

[dependencies]
smallvec = { version = "1.10.0", features = ["union"] }
smallvec = { version = "1.11.0", features = ["union"] }

[features]
default = ["std"]
Expand Down
Loading

0 comments on commit 7805522

Please sign in to comment.