PoC: Create an Api::dynamic
and Api::cluster
+ scope constrain Api::all
#1865
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
name: coverage | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths: | |
- '**.rs' | |
- '**.toml' | |
- '**.yml' | |
jobs: | |
tarpaulin-codecov: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- uses: Swatinem/rust-cache@v2 | |
- uses: AbsaOSS/k3d-action@v2 | |
name: "Create Single Cluster" | |
with: | |
cluster-name: "test-cluster-1" | |
args: >- | |
--agents 1 | |
--image docker.io/rancher/k3s:v1.23.4-k3s1 | |
--k3s-arg "--no-deploy=traefik,servicelb,metrics-server@server:*" | |
- name: Run cargo-tarpaulin | |
uses: actions-rs/[email protected] | |
with: | |
version: '0.18.5' | |
out-type: Xml | |
- uses: codecov/codecov-action@v3 |