Skip to content

Move admin and meta component into cluster controller role #2384

Move admin and meta component into cluster controller role

Move admin and meta component into cluster controller role #2384

Workflow file for this run

name: CI
on:
pull_request:
workflow_call:
workflow_dispatch:
push:
branches:
- main
jobs:
lint-build-and-test:
name: Lint, build and test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
permissions:
contents: read
packages: read
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
#os: [ubuntu-22.04, macos-latest] # 1 macos-latest minute counts as 10 minutes --> quite expensive :-(
os: [ubuntu-22.04]
env:
RUST_BACKTRACE: full
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/clean-runner
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
# need to provide a toolchain version because this action cannot read rust-toolchain.toml. See https://github.com/actions-rs/toolchain/issues/126
toolchain: stable
- name: Install protoc
uses: ./.github/actions/install-protoc
- name: Setup just
uses: extractions/setup-just@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Cache Rust
uses: Swatinem/rust-cache@v2
- name: Check license headers
run: just check-license-headers
- name: Run fmt
run: just check-fmt
- name: Run clippy
run: just clippy
- name: Run tests
run: just test
docker:
name: Create docker image
uses: ./.github/workflows/docker.yml
with:
uploadImageAsTarball: true
platforms: linux/amd64
e2e:
name: Run e2e tests
permissions:
contents: read
issues: read
checks: write
pull-requests: write
actions: read
secrets: inherit
needs: docker
uses: restatedev/e2e/.github/workflows/e2e.yaml@main
with:
restateCommit: ${{ github.event.pull_request.head.sha || github.sha }}
e2eRef: main