Upgrade to Rust 1.85 and edition 2024
This commit is contained in:
28
.github/workflows/ci.yaml
vendored
28
.github/workflows/ci.yaml
vendored
@@ -4,9 +4,9 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- 'release/**'
|
||||
- "release/**"
|
||||
tags:
|
||||
- 'v*'
|
||||
- "v*"
|
||||
pull_request:
|
||||
|
||||
concurrency:
|
||||
@@ -31,10 +31,7 @@ jobs:
|
||||
- name: Checkout the code
|
||||
uses: actions/checkout@v4.2.2
|
||||
|
||||
- name: Setup OPA
|
||||
uses: open-policy-agent/setup-opa@v2.2.0
|
||||
with:
|
||||
version: 0.70.0
|
||||
- uses: ./.github/actions/build-policies
|
||||
|
||||
- name: Setup Regal
|
||||
uses: StyraInc/setup-regal@v1
|
||||
@@ -73,7 +70,6 @@ jobs:
|
||||
working-directory: ./frontend
|
||||
run: npm run lint
|
||||
|
||||
|
||||
frontend-test:
|
||||
name: Run the frontend test suite
|
||||
runs-on: ubuntu-24.04
|
||||
@@ -98,7 +94,6 @@ jobs:
|
||||
working-directory: ./frontend
|
||||
run: npm test
|
||||
|
||||
|
||||
frontend-knip:
|
||||
name: Check the frontend for unused dependencies
|
||||
runs-on: ubuntu-24.04
|
||||
@@ -123,7 +118,6 @@ jobs:
|
||||
working-directory: ./frontend
|
||||
run: npm run knip
|
||||
|
||||
|
||||
rustfmt:
|
||||
name: Check Rust style
|
||||
runs-on: ubuntu-24.04
|
||||
@@ -143,7 +137,6 @@ jobs:
|
||||
- name: Check style
|
||||
run: cargo fmt --all -- --check
|
||||
|
||||
|
||||
cargo-deny:
|
||||
name: Run `cargo deny` checks
|
||||
runs-on: ubuntu-24.04
|
||||
@@ -162,7 +155,6 @@ jobs:
|
||||
- name: Run `cargo-deny`
|
||||
uses: EmbarkStudios/cargo-deny-action@v2.0.5
|
||||
|
||||
|
||||
check-schema:
|
||||
name: Check schema
|
||||
runs-on: ubuntu-24.04
|
||||
@@ -203,7 +195,6 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
clippy:
|
||||
name: Run Clippy
|
||||
needs: [rustfmt, opa-lint]
|
||||
@@ -221,14 +212,7 @@ jobs:
|
||||
with:
|
||||
components: clippy
|
||||
|
||||
- name: Setup OPA
|
||||
uses: open-policy-agent/setup-opa@v2.2.0
|
||||
with:
|
||||
version: 0.64.1
|
||||
|
||||
- name: Compile OPA policies
|
||||
working-directory: ./policies
|
||||
run: make
|
||||
- uses: ./.github/actions/build-policies
|
||||
|
||||
- name: Setup sccache
|
||||
uses: mozilla-actions/sccache-action@v0.0.7
|
||||
@@ -237,7 +221,6 @@ jobs:
|
||||
run: |
|
||||
cargo clippy --workspace --tests --bins --lib -- -D warnings
|
||||
|
||||
|
||||
compile-test-artifacts:
|
||||
name: Compile test artifacts
|
||||
runs-on: ubuntu-24.04
|
||||
@@ -263,7 +246,7 @@ jobs:
|
||||
- name: Build and archive tests
|
||||
run: cargo nextest archive --workspace --archive-file nextest-archive.tar.zst
|
||||
env:
|
||||
SQLX_OFFLINE: '1'
|
||||
SQLX_OFFLINE: "1"
|
||||
|
||||
- name: Upload archive to workflow
|
||||
uses: actions/upload-artifact@v4.6.0
|
||||
@@ -271,7 +254,6 @@ jobs:
|
||||
name: nextest-archive
|
||||
path: nextest-archive.tar.zst
|
||||
|
||||
|
||||
test:
|
||||
name: Run test suite with Rust stable
|
||||
needs: [rustfmt, opa-lint, compile-test-artifacts]
|
||||
|
||||
13
.github/workflows/coverage.yaml
vendored
13
.github/workflows/coverage.yaml
vendored
@@ -2,9 +2,9 @@ name: Coverage
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
branches: [main]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
@@ -26,10 +26,7 @@ jobs:
|
||||
- name: Checkout the code
|
||||
uses: actions/checkout@v4.2.2
|
||||
|
||||
- name: Setup OPA
|
||||
uses: open-policy-agent/setup-opa@v2.2.0
|
||||
with:
|
||||
version: 0.70.0
|
||||
- uses: ./.github/actions/build-policies
|
||||
|
||||
- name: Run OPA tests with coverage
|
||||
working-directory: ./policies
|
||||
@@ -119,10 +116,10 @@ jobs:
|
||||
run: |
|
||||
cargo test --no-fail-fast --workspace
|
||||
env:
|
||||
RUSTFLAGS: '-Cinstrument-coverage'
|
||||
RUSTFLAGS: "-Cinstrument-coverage"
|
||||
LLVM_PROFILE_FILE: "cargo-test-%p-%m.profraw"
|
||||
DATABASE_URL: postgresql://postgres:postgres@localhost/postgres
|
||||
SQLX_OFFLINE: '1'
|
||||
SQLX_OFFLINE: "1"
|
||||
|
||||
- name: Build grcov report
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user