-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2405 from saschagrunert/prettier
Add prettier CI target
- Loading branch information
Showing
7 changed files
with
61 additions
and
41 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 |
---|---|---|
@@ -1,33 +1,33 @@ | ||
version: 2 | ||
updates: | ||
# TODO: does not support vendoring | ||
# - package-ecosystem: cargo | ||
# directory: "/" | ||
# schedule: | ||
# interval: daily | ||
# time: "11:00" | ||
# open-pull-requests-limit: 10 | ||
# labels: | ||
# - "release-note-none" | ||
# allow: | ||
# - dependency-type: direct | ||
# - dependency-type: indirect | ||
# groups: | ||
# opentelemetry: | ||
# patterns: | ||
# - "opentelemetry*" | ||
# - "tracing-opentelemetry" | ||
- package-ecosystem: gomod | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 10 | ||
labels: | ||
- "release-note-none" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 10 | ||
labels: | ||
- "release-note-none" | ||
# TODO: does not support vendoring | ||
# - package-ecosystem: cargo | ||
# directory: "/" | ||
# schedule: | ||
# interval: daily | ||
# time: "11:00" | ||
# open-pull-requests-limit: 10 | ||
# labels: | ||
# - "release-note-none" | ||
# allow: | ||
# - dependency-type: direct | ||
# - dependency-type: indirect | ||
# groups: | ||
# opentelemetry: | ||
# patterns: | ||
# - "opentelemetry*" | ||
# - "tracing-opentelemetry" | ||
- package-ecosystem: gomod | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 10 | ||
labels: | ||
- "release-note-none" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 10 | ||
labels: | ||
- "release-note-none" |
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
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 |
---|---|---|
|
@@ -8,11 +8,11 @@ on: | |
- main | ||
env: | ||
CARGO_TERM_COLOR: always | ||
GO_VERSION: '1.23' | ||
GO_VERSION: "1.23" | ||
ACTION_MSRV_TOOLCHAIN: 1.66.1 | ||
# Latest available toolchain which does not break clippy and the unit tests | ||
ACTION_MSRV_NIGHTLY_TOOLCHAIN: nightly-2024-05-19 | ||
NIX_VERSION: '2.21.0' | ||
NIX_VERSION: "2.21.0" | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
@@ -156,7 +156,7 @@ jobs: | |
- uses: cachix/cachix-action@v15 | ||
with: | ||
name: conmon-rs | ||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | ||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | ||
pushFilter: "(conmon-rs|cargo-vendor)" | ||
- run: nix-build nix/default-${{ matrix.arch }}.nix | ||
- run: file result/bin/conmonrs | grep static | grep stripped | ||
|
@@ -299,9 +299,9 @@ jobs: | |
command: test | ||
args: --no-fail-fast | ||
env: | ||
CARGO_INCREMENTAL: '0' | ||
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests' | ||
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests' | ||
CARGO_INCREMENTAL: "0" | ||
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests" | ||
RUSTDOCFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests" | ||
- name: Coverage | ||
uses: actions-rs/[email protected] | ||
with: | ||
|
@@ -409,3 +409,12 @@ jobs: | |
- uses: crate-ci/[email protected] | ||
with: | ||
config: .github/typos.toml | ||
|
||
prettier: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
- uses: creyD/prettier_action@31355f8eef017f8aeba2e0bc09d8502b13dbbad1 # v4.3 | ||
with: | ||
dry: true | ||
prettier_options: --write . |
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
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
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 @@ | ||
.cargo-vendor |
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