Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into invalid-receipts-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosvdr committed Jul 29, 2024
2 parents 3e9f0e7 + ead4ac2 commit 93bc3f5
Show file tree
Hide file tree
Showing 67 changed files with 2,019 additions and 969 deletions.
122 changes: 122 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: [
'config:recommended',
':semanticCommits',
':semanticCommitTypeAll(chore)',
'helpers:pinGitHubActionDigests',
],
schedule: [
'before 6am on Monday',
],
configMigration: true,
rebaseWhen: 'behind-base-branch',
lockFileMaintenance: {
enabled: true,
},
packageRules: [
{
groupName: 'futures crates',
groupSlug: 'futures',
matchManagers: [
'cargo',
],
matchPackageNames: [
'futures',
],
matchPackagePrefixes: [
'futures-',
'futures_',
],
},
{
groupName: 'serde crates',
groupSlug: 'serde',
matchManagers: [
'cargo',
],
matchPackageNames: [
'serde',
],
matchPackagePrefixes: [
'serde-',
'serde_',
],
},
{
groupName: 'tonic crates',
groupSlug: 'tonic',
matchManagers: [
'cargo',
],
matchSourceUrlPrefixes: [
'https://github.com/hyperium/tonic',
'https://github.com/tokio-rs/prost',
],
},
{
groupName: 'tracing crates',
groupSlug: 'tracing',
matchManagers: [
'cargo',
],
matchSourceUrlPrefixes: [
'https://github.com/tokio-rs/tracing',
],
matchPackagePrefixes: [
'tracing-',
'tracing_',
],
},
{
groupName: 'alloy-rs core types monorepo',
groupSlug: 'alloy-core',
matchManagers: [
'cargo',
],
matchSourceUrlPrefixes: [
'https://github.com/alloy-rs/core',
],
},
{
groupName: 'async-graphql crates',
groupSlug: 'async-graphql',
matchManagers: [
'cargo',
],
matchPackageNames: [
'async-graphql',
],
matchPackagePrefixes: [
'async-graphql-',
],
},
{
groupName: 'build-info crates',
groupSlug: 'build-info',
matchManagers: [
'cargo',
],
matchPackageNames: [
'build-info',
],
matchPackagePrefixes: [
'build-info-',
],
},
],
customManagers: [
{
customType: 'regex',
fileMatch: [
'^rust-toolchain(\\.toml)?$',
],
matchStrings: [
'channel\\s*=\\s*"(?<currentValue>\\d+\\.\\d+\\.\\d+)"',
],
depNameTemplate: 'rust',
packageNameTemplate: 'rust-lang/rust',
datasourceTemplate: 'github-releases',
},
],
}
8 changes: 4 additions & 4 deletions .github/workflows/containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5
with:
# list of Docker images to use as base name for tags
images: |
Expand All @@ -47,14 +47,14 @@ jobs:
type=sha
- name: Log in to the Container registry
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v4
uses: docker/build-push-action@15560696de535e4014efeff63c48f16952e52dd1 # v6
with:
context: ./
push: true
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/conventional_commits.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Lint PR"

on:
pull_request:

jobs:
conventional-commits-check:
name: Check conventional commits
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5
with:
python-version: "3.10"
- name: Install commitizen
run: pip install commitizen
- name: commitizen check
run: cz check --rev-range ${{ github.event.pull_request.base.sha }}..HEAD
2 changes: 1 addition & 1 deletion .github/workflows/license_headers_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: License headers check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Install addlicense
run: |
wget https://github.com/google/addlicense/releases/download/v1.1.1/addlicense_1.1.1_Linux_x86_64.tar.gz
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
container:
image: rust:1.76-bookworm
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- run: |
rustup component add rustfmt
cargo fmt --all -- --check
Expand All @@ -38,8 +38,8 @@ jobs:
env:
DATABASE_URL: postgres://postgres@postgres:5432
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: |
~/.cargo/bin/
Expand All @@ -64,8 +64,8 @@ jobs:
DATABASE_URL: postgres://postgres@postgres:5432
SQLX_OFFLINE: true
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: |
~/.cargo/bin/
Expand Down Expand Up @@ -103,8 +103,8 @@ jobs:
env:
DATABASE_URL: postgres://postgres@postgres:5432
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: |
~/.cargo/bin/
Expand All @@ -122,7 +122,7 @@ jobs:
- name: Run tests and generate coverage report
run: cargo llvm-cov test --all-features --workspace --lcov --output-path lcov.info
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2.2.0
uses: coverallsapp/github-action@643bc377ffa44ace6394b2b5d0d3950076de9f63 # v2.3.0
with:
file: ./lcov.info

Expand Down Expand Up @@ -151,8 +151,8 @@ jobs:
env:
DATABASE_URL: postgres://postgres@postgres:5432
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: |
~/.cargo/bin/
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 93bc3f5

Please sign in to comment.