Skip to content

Commit fc258e1

Browse files
rootroot
authored andcommitted
Merge branch 'master' into color_for_recent_publish_date
2 parents 2dc9be0 + caa9043 commit fc258e1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+1982
-960
lines changed

.github/renovate.json5

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,14 @@
1111
":automergeTesters",
1212
"regexManagers:dockerfileVersions",
1313
"regexManagers:githubActionsVersions",
14+
"github>Turbo87/renovate-config//rust/updateToolchain",
1415
],
1516
"js": {
1617
"labels": ["A-frontend 🐹"],
1718
},
1819
"rust": {
1920
"labels": ["A-backend ⚙️"],
2021
},
21-
"regexManagers": [
22-
{
23-
"fileMatch": ["^RustConfig$"],
24-
"matchStrings": ["VERSION=(?<currentValue>.*?)\n"],
25-
"depNameTemplate": "rust",
26-
"datasourceTemplate": "github-releases",
27-
"lookupNameTemplate": "rust-lang/rust",
28-
}
29-
],
3022
"packageRules": [{
3123
"matchPackageNames": ["ember-cli", "ember-data", "ember-source"],
3224
"separateMinorPatch": true,
@@ -48,13 +40,6 @@
4840
"matchPackageNames": ["rust"],
4941
"commitMessageTopic": "Rust",
5042
"labels": ["A-backend ⚙️"],
51-
}, {
52-
"matchPackagePatterns": [
53-
"^conduit$",
54-
"^conduit-",
55-
"^sentry-conduit$",
56-
],
57-
"groupName": "conduit packages",
5843
}, {
5944
"matchPackagePatterns": [
6045
"^diesel$",

.github/workflows/ci.yml

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ concurrency:
1313
cancel-in-progress: true
1414

1515
env:
16+
# renovate: datasource=crate depName=cargo-deny versioning=semver
17+
CARGO_DENY_VERSION: 0.13.9
1618
# renovate: datasource=crate depName=diesel_cli versioning=semver
1719
DIESEL_CLI_VERSION: 2.0.1
1820
# renovate: datasource=npm depName=pnpm
19-
PNPM_VERSION: 8.4.0
20-
# renovate: datasource=github-releases depName=rust lookupName=rust-lang/rust
21-
RUST_VERSION: 1.69.0
21+
PNPM_VERSION: 8.5.0
2222

2323
jobs:
2424
changed-files:
@@ -48,18 +48,22 @@ jobs:
4848
with:
4949
files_ignore: |
5050
cargo-registry-*/**
51-
conduit/**
52-
conduit-*/**
5351
migrations/**
5452
src/**
5553
build.rs
5654
Cargo.lock
5755
Cargo.toml
58-
RustConfig
56+
rust-toolchain.toml
57+
58+
- uses: tj-actions/[email protected]
59+
id: changed-files-rust-lockfile
60+
with:
61+
files: Cargo.lock
5962

6063
outputs:
6164
non-js: ${{ steps.changed-files-non-js.outputs.any_modified }}
6265
non-rust: ${{ steps.changed-files-non-rust.outputs.any_modified }}
66+
rust-lockfile: ${{ steps.changed-files-rust-lockfile.outputs.any_modified }}
6367

6468
backend-lint:
6569
name: Backend / Lint
@@ -73,7 +77,6 @@ jobs:
7377
steps:
7478
- uses: actions/[email protected]
7579

76-
- run: rustup default ${{ env.RUST_VERSION }}
7780
- run: rustup component add rustfmt
7881
- run: rustup component add clippy
7982

@@ -82,6 +85,23 @@ jobs:
8285
- run: cargo fmt --check
8386
- run: cargo clippy --all-targets --all-features --all
8487

88+
backend-cargo-deny:
89+
name: Backend / cargo-deny
90+
runs-on: ubuntu-22.04
91+
needs: changed-files
92+
if: needs.changed-files.outputs.rust-lockfile == 'true'
93+
94+
env:
95+
RUSTFLAGS: "-D warnings"
96+
97+
steps:
98+
- uses: actions/[email protected]
99+
100+
- uses: Swatinem/[email protected]
101+
102+
- run: cargo install cargo-deny --vers ${{ env.CARGO_DENY_VERSION }}
103+
- run: cargo deny check
104+
85105
backend-test:
86106
name: Backend / Test
87107
runs-on: ubuntu-22.04
@@ -112,8 +132,6 @@ jobs:
112132
steps:
113133
- uses: actions/[email protected]
114134

115-
- run: rustup default ${{ env.RUST_VERSION }}
116-
117135
- uses: Swatinem/[email protected]
118136

119137
- run: cargo install diesel_cli --vers ${{ env.DIESEL_CLI_VERSION }} --no-default-features --features postgres --debug

Cargo.lock

Lines changed: 28 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)