-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
700 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: cargo | ||
directory: "/" | ||
schedule: | ||
interval: monthly | ||
time: "07:00" | ||
open-pull-requests-limit: 10 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# These settings are synced to GitHub by https://probot.github.io/apps/settings/ | ||
|
||
repository: | ||
description: Load additional CLI args from file | ||
homepage: docs.rs/argfile | ||
topics: rust cli clap | ||
has_issues: true | ||
has_projects: false | ||
has_wiki: false | ||
has_downloads: true | ||
default_branch: main | ||
|
||
allow_squash_merge: true | ||
allow_merge_commit: true | ||
allow_rebase_merge: true | ||
|
||
# Manual: allow_auto_merge: true, see https://github.com/probot/settings/issues/402 | ||
delete_branch_on_merge: true | ||
|
||
labels: | ||
# Type | ||
- name: bug | ||
color: '#b60205' | ||
description: Not as expected | ||
- name: enhancement | ||
color: '#1d76db' | ||
description: Improve the expected | ||
# Flavor | ||
- name: question | ||
color: "#cc317c" | ||
description: Uncertainty is involved | ||
- name: breaking-change | ||
color: "#e99695" | ||
- name: good first issue | ||
color: '#c2e0c6' | ||
description: Help wanted! | ||
|
||
branches: | ||
- name: main | ||
protection: | ||
required_pull_request_reviews: null | ||
required_conversation_resolution: true | ||
required_status_checks: | ||
# Required. Require branches to be up to date before merging. | ||
strict: false | ||
contexts: ["CI", "Lint Commits", "Spell Check with Typos"] | ||
enforce_admins: false | ||
restrictions: null |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Security audit | ||
on: | ||
pull_request: | ||
paths: | ||
- '**/Cargo.toml' | ||
- '**/Cargo.lock' | ||
push: | ||
paths: | ||
- '**/Cargo.toml' | ||
- '**/Cargo.lock' | ||
schedule: | ||
- cron: '1 1 1 * *' | ||
jobs: | ||
security_audit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- uses: actions-rs/audit-check@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,144 @@ | ||
name: CI | ||
on: | ||
pull_request: | ||
paths: | ||
- '**' | ||
- '!/*.md' | ||
- '!/docs/**' | ||
- "!/LICENSE-*" | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- '**' | ||
- '!/*.md' | ||
- '!/docs/**' | ||
- "!/LICENSE-*" | ||
schedule: | ||
- cron: '1 1 1 * *' | ||
jobs: | ||
ci: | ||
name: CI | ||
needs: [smoke, test, msrv, docs, rustfmt, clippy] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Done | ||
run: exit 0 | ||
smoke: | ||
name: Quick Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
profile: minimal | ||
override: true | ||
- uses: Swatinem/rust-cache@v1 | ||
- name: Default features | ||
run: cargo check --workspace --all-targets | ||
- name: All features | ||
run: cargo check --workspace --all-targets --all-features | ||
- name: No-default features | ||
run: cargo check --workspace --all-targets --no-default-features | ||
test: | ||
name: Test | ||
needs: smoke | ||
strategy: | ||
matrix: | ||
os: ["ubuntu-latest", "windows-latest", "macos-latest"] | ||
rust: ["stable"] | ||
continue-on-error: ${{ matrix.rust != 'stable' }} | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
profile: minimal | ||
override: true | ||
- uses: Swatinem/rust-cache@v1 | ||
- name: Default features | ||
run: cargo test --workspace | ||
- name: All features | ||
run: cargo test --workspace --all-features | ||
- name: No-default features | ||
run: cargo test --workspace --no-default-features | ||
msrv: | ||
name: "Check MSRV: 1.54.0" | ||
needs: smoke | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.54.0 # MSRV | ||
profile: minimal | ||
override: true | ||
- uses: Swatinem/rust-cache@v1 | ||
- name: Default features | ||
run: cargo check --workspace --all-targets | ||
- name: All features | ||
run: cargo check --workspace --all-targets --all-features | ||
- name: No-default features | ||
run: cargo check --workspace --all-targets --no-default-features | ||
docs: | ||
name: Docs | ||
needs: smoke | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
profile: minimal | ||
override: true | ||
- uses: Swatinem/rust-cache@v1 | ||
- name: Check documentation | ||
env: | ||
RUSTDOCFLAGS: -D warnings | ||
run: cargo doc --no-deps --document-private-items --workspace | ||
rustfmt: | ||
name: rustfmt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
# Not MSRV because its harder to jump between versions and people are | ||
# more likely to have stable | ||
toolchain: stable | ||
profile: minimal | ||
override: true | ||
components: rustfmt | ||
- uses: Swatinem/rust-cache@v1 | ||
- name: Check formatting | ||
run: cargo fmt --all -- --check | ||
clippy: | ||
name: clippy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.54.0 # MSRV | ||
profile: minimal | ||
override: true | ||
components: clippy | ||
- uses: Swatinem/rust-cache@v1 | ||
- uses: actions-rs/clippy-check@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
args: --workspace --all-features --all-targets -- -D warnings |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Lint Commits | ||
on: [pull_request] | ||
|
||
jobs: | ||
committed: | ||
name: Lint Commits | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Actions Repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Lint Commits | ||
uses: crate-ci/committed@master |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: pre-commit | ||
on: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- uses: pre-commit/[email protected] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: rust-next | ||
on: | ||
schedule: | ||
- cron: '1 1 1 * *' | ||
jobs: | ||
test: | ||
name: Test | ||
strategy: | ||
matrix: | ||
os: ["ubuntu-latest", "windows-latest", "macos-latest"] | ||
rust: ["stable", "beta"] | ||
include: | ||
- os: ubuntu-latest | ||
rust: "nightly" | ||
continue-on-error: ${{ matrix.rust != 'stable' }} | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
profile: minimal | ||
override: true | ||
- uses: Swatinem/rust-cache@v1 | ||
- name: Default features | ||
run: cargo test --workspace | ||
- name: All features | ||
run: cargo test --workspace --all-features | ||
- name: No-default features | ||
run: cargo test --workspace --no-default-features | ||
rustfmt: | ||
name: rustfmt | ||
strategy: | ||
matrix: | ||
rust: | ||
- stable | ||
- beta | ||
continue-on-error: ${{ matrix.rust != 'stable' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
profile: minimal | ||
override: true | ||
components: rustfmt | ||
- uses: Swatinem/rust-cache@v1 | ||
- name: Check formatting | ||
run: cargo fmt --all -- --check | ||
clippy: | ||
name: clippy | ||
strategy: | ||
matrix: | ||
rust: | ||
- 1.54.0 # MSRV | ||
- stable | ||
continue-on-error: ${{ matrix.rust != '1.54.0' }} # MSRV | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
profile: minimal | ||
override: true | ||
components: clippy | ||
- uses: Swatinem/rust-cache@v1 | ||
- uses: actions-rs/clippy-check@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
args: --workspace --all-features --all-targets -- -D warnings |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Spelling | ||
on: [pull_request] | ||
|
||
jobs: | ||
spelling: | ||
name: Spell Check with Typos | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Actions Repository | ||
uses: actions/checkout@v2 | ||
- name: Spell Check Repo | ||
uses: crate-ci/typos@master |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.3.0 | ||
hooks: | ||
- id: check-yaml | ||
stages: [commit] | ||
- id: check-json | ||
stages: [commit] | ||
- id: check-toml | ||
stages: [commit] | ||
- id: check-merge-conflict | ||
stages: [commit] | ||
- id: check-case-conflict | ||
stages: [commit] | ||
- id: detect-private-key | ||
stages: [commit] | ||
- repo: https://github.com/crate-ci/typos | ||
rev: v1.2.1 | ||
hooks: | ||
- id: typos | ||
stages: [commit] | ||
- repo: https://github.com/crate-ci/committed | ||
rev: v0.2.5 | ||
hooks: | ||
- id: committed | ||
stages: [commit-msg] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Change Log | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](http://keepachangelog.com/) | ||
and this project adheres to [Semantic Versioning](http://semver.org/). | ||
|
||
<!-- next-header --> | ||
## [Unreleased] - ReleaseDate | ||
|
||
<!-- next-url --> | ||
[Unreleased]: https://github.com/rust-cli/argfile/compare/babf658...HEAD |
Oops, something went wrong.