This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Rashad Alston <[email protected]>
- Loading branch information
Showing
13 changed files
with
61 additions
and
50 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 |
---|---|---|
|
@@ -14,6 +14,7 @@ env: | |
CARGO_TERM_COLOR: always | ||
RUSTFLAGS: -D warnings | ||
REGISTRY: ghcr.io | ||
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2 | ||
SQLX_OFFLINE: true | ||
RUSTC_VERSION: 1.67 | ||
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | ||
|
@@ -23,7 +24,7 @@ env: | |
|
||
jobs: | ||
cancel-previous-runs: | ||
runs-on: ubuntu-latest | ||
runs-on: buildjet-4vcpu-ubuntu-2204 | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
|
@@ -33,7 +34,7 @@ jobs: | |
check-rustc: | ||
needs: | ||
- cancel-previous-runs | ||
runs-on: ubuntu-latest | ||
runs-on: buildjet-4vcpu-ubuntu-2204 | ||
steps: | ||
- name: Check rustc version | ||
run: | | ||
|
@@ -48,25 +49,23 @@ jobs: | |
cargo-toml-fmt-check: | ||
needs: | ||
- check-rustc | ||
runs-on: ubuntu-latest | ||
runs-on: buildjet-4vcpu-ubuntu-2204 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: stable | ||
- uses: Swatinem/rust-cache@v1 | ||
toolchain: ${{ env.RUSTC_VERSION }} | ||
- name: setup binstall | ||
uses: taiki-e/install-action@cargo-binstall | ||
- name: Install Cargo.toml linter | ||
uses: baptiste0928/cargo-install@v1 | ||
with: | ||
crate: cargo-toml-lint | ||
version: '0.1' | ||
- name: Run Cargo.toml linter | ||
run: git ls-files | grep Cargo.toml$ | xargs --verbose -n 1 cargo-toml-lint | ||
run: cargo binstall --no-confirm cargo-sort | ||
- name: Run Cargo.toml sort check | ||
run: cargo sort -w --check packages/**/Cargo.toml | ||
|
||
set-env-vars: | ||
needs: | ||
- check-rustc | ||
runs-on: ubuntu-latest | ||
runs-on: buildjet-4vcpu-ubuntu-2204 | ||
outputs: | ||
IS_MASTER: ${{ steps.set-env.outputs.IS_MASTER }} | ||
IS_RELEASE: ${{ steps.set-env.outputs.IS_RELEASE }} | ||
|
@@ -84,7 +83,7 @@ jobs: | |
if: needs.set-env-vars.outputs.IS_RELEASE_OR_MASTER != 'true' | ||
needs: | ||
- set-env-vars | ||
runs-on: ubuntu-latest | ||
runs-on: buildjet-4vcpu-ubuntu-2204 | ||
outputs: | ||
is_semver_branch: ${{ steps.semver-branch-check.outputs.is_semver_branch }} | ||
steps: | ||
|
@@ -100,7 +99,7 @@ jobs: | |
mdbook-lint: | ||
needs: | ||
- check-rustc | ||
runs-on: ubuntu-latest | ||
runs-on: buildjet-4vcpu-ubuntu-2204 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
|
@@ -113,7 +112,7 @@ jobs: | |
mdbook-build: | ||
needs: | ||
- mdbook-lint | ||
runs-on: ubuntu-latest | ||
runs-on: buildjet-4vcpu-ubuntu-2204 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
|
@@ -127,7 +126,7 @@ jobs: | |
mdbook-version: 'latest' | ||
|
||
cargo-verifications: | ||
runs-on: ubuntu-latest | ||
runs-on: buildjet-4vcpu-ubuntu-2204 | ||
services: | ||
postgres: | ||
image: postgres:latest | ||
|
@@ -180,7 +179,7 @@ jobs: | |
needs: | ||
- cargo-toml-fmt-check | ||
- set-env-vars | ||
runs-on: ubuntu-latest | ||
runs-on: buildjet-4vcpu-ubuntu-2204 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
|
@@ -195,7 +194,7 @@ jobs: | |
needs: | ||
- cargo-toml-fmt-check | ||
- set-env-vars | ||
runs-on: ubuntu-latest | ||
runs-on: buildjet-4vcpu-ubuntu-2204 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
|
@@ -210,7 +209,7 @@ jobs: | |
needs: | ||
- cargo-toml-fmt-check | ||
- set-env-vars | ||
runs-on: ubuntu-latest | ||
runs-on: buildjet-4vcpu-ubuntu-2204 | ||
services: | ||
postgres: | ||
image: postgres:latest | ||
|
@@ -235,7 +234,7 @@ jobs: | |
needs: | ||
- cargo-toml-fmt-check | ||
- set-env-vars | ||
runs-on: ubuntu-latest | ||
runs-on: buildjet-4vcpu-ubuntu-2204 | ||
services: | ||
postgres: | ||
image: postgres:latest | ||
|
@@ -280,7 +279,7 @@ jobs: | |
needs: | ||
- cargo-toml-fmt-check | ||
- set-env-vars | ||
runs-on: ubuntu-latest | ||
runs-on: buildjet-4vcpu-ubuntu-2204 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
|
@@ -318,7 +317,7 @@ jobs: | |
- check-forc-index | ||
- set-env-vars | ||
if: needs.set-env-vars.outputs.IS_RELEASE_OR_MASTER == 'true' | ||
runs-on: ubuntu-latest | ||
runs-on: buildjet-4vcpu-ubuntu-2204 | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
@@ -570,7 +569,7 @@ jobs: | |
needs: | ||
- publish-docker-image | ||
- set-env-vars | ||
runs-on: ubuntu-latest | ||
runs-on: buildjet-4vcpu-ubuntu-2204 | ||
steps: | ||
- name: Set Environment Variables | ||
run: | | ||
|
@@ -599,7 +598,7 @@ jobs: | |
- publish-docker-image | ||
- set-env-vars | ||
if: needs.set-env-vars.outputs.IS_RELEASE == 'true' | ||
runs-on: ubuntu-latest | ||
runs-on: buildjet-4vcpu-ubuntu-2204 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
@@ -657,15 +656,15 @@ jobs: | |
- deploy | ||
- publish | ||
- cargo-verifications | ||
runs-on: ubuntu-latest | ||
runs-on: buildjet-4vcpu-ubuntu-2204 | ||
steps: | ||
- run: true | ||
|
||
notify-slack-on-failure: | ||
needs: | ||
- validation-complete | ||
if: always() | ||
runs-on: ubuntu-latest | ||
runs-on: buildjet-4vcpu-ubuntu-2204 | ||
steps: | ||
- name: Notify Slack On Failure | ||
uses: ravsamhq/notify-slack-action@v2 | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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,19 @@ | ||
# trailing comma in arrays | ||
always_trailing_comma = false | ||
# trailing comma when multi-line | ||
multiline_trailing_comma = true | ||
space_around_eq = true | ||
# remove all the spacing inside the array | ||
compact_arrays = false | ||
# remove all the spacing inside the object | ||
compact_inline_tables = false | ||
trailing_newline = true | ||
# is it ok to have blank lines inside of a table | ||
# this option needs to be true for the --grouped flag | ||
key_value_newlines = true | ||
allowed_blank_lines = 1 | ||
# windows style line endings | ||
crlf = false | ||
# The user specified ordering of tables in a document. | ||
# All unspecified tables will come after these. | ||
table_order = [] |