Skip to content

Sanitize with latest #464

Sanitize with latest

Sanitize with latest #464

name: Sanitize with latest
on:
schedule:
- cron: '0 8 * * *'
workflow_dispatch:
permissions:
# Allow checks read
checks: write
# Allow repo checkout
contents: write
# Allow PRs read
pull-requests: read
env:
GRAFBASE_SKIP_ASSET_VERSION_CHECK: 'true'
CARGO_TERM_COLOR: 'always'
jobs:
sanitize:
runs-on: ubicloud-standard-8
steps:
- name: Get sources
uses: actions/checkout@v4
- name: Rust job init
uses: ./.github/actions/init_rust_job
with:
platform: linux
cache-key: ${{ runner.os }}-${{ runner.arch }}-cargo-dev-${{ hashFiles('cli/Cargo.lock') }}
- name: Build grafbase assets
uses: ./.github/actions/cli_assets
- name: Lint
uses: ./.github/actions/lint
- name: Test
uses: ./.github/actions/test
with:
dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub-token: ${{ secrets.DOCKERHUB_TOKEN }}
datadog-api-key: ${{ secrets.DATADOG_API_KEY }}
- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@v2
with:
status: ${{ job.status }}
notification_title: '{workflow} has {status_message}'
message_format: '{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>'
footer: '<{run_url}|View Run>'
notify_when: 'failure'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}