Skip to content

Commit

Permalink
chore: More schemas action tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
bgins committed Feb 8, 2024
1 parent 873b417 commit afe18c2
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 🛡 Audit-Check

on:
schedule:
- cron: '0 0 * * *'
- cron: "0 0 * * *"

jobs:
security-audit:
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: ☂ Code Coverage

on:
push:
branches: [ main ]
branches: [main]

pull_request:
branches: [ '*' ]
branches: ["*"]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
27 changes: 27 additions & 0 deletions .github/workflows/schemas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,34 @@ permissions:
pull-requests: write

jobs:
# changes:
# runs-on: ubuntu-latest
# permissions:
# pull-requests: read
# outputs:
# rust: ${{ steps.filter.outputs.rust }}
# steps:
# - name: Checkout Repository
# uses: actions/checkout@v4
# - uses: dorny/paths-filter@v3
# id: filter
# with:
# filters: |
# rust:
# - '**/Cargo.*'
# - '**/src/**'
# - '**/tests/**'
# - '**/build.rs'
# - '**/migrations/**'
# - '**/fixtures/**'
# - '**/wit/**'

schemas:
needs: changes
if: ${{ needs.changes.outputs.rust == 'true' }}
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tests_and_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ jobs:

- name: Run Linter
run: cargo clippy --all -- -D warnings
continue-on-error: ${{ matrix.rust-toolchain == 'nightly' && matrix.os == 'macos-14' }}

- name: Install cargo-hakari
if: ${{ matrix.rust-toolchain == 'stable' }}
Expand Down
2 changes: 1 addition & 1 deletion homestar-schemas/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ fn generate_api_doc(
summary: None,
servers: None,
tags: None,
param_structure: Some(MethodObjectParamStructure::ByName),
param_structure: Some(MethodObjectParamStructure::Either),
params: vec![],
result: ContentDescriptorOrReference::ContentDescriptorObject(ContentDescriptorObject {
name: "health".to_string(),
Expand Down

0 comments on commit afe18c2

Please sign in to comment.