mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
parent
64759ea20f
commit
9196807fdb
27
.github/workflows/clippy.yml
vendored
27
.github/workflows/clippy.yml
vendored
|
@ -9,15 +9,26 @@ name: Clippy
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
jobs:
|
jobs:
|
||||||
clippy:
|
clippy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Restore our cache
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cargo/bin/
|
||||||
|
~/.cargo/registry/index/
|
||||||
|
~/.cargo/registry/cache/
|
||||||
|
~/.cargo/git/db/
|
||||||
|
target/
|
||||||
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Update package manager
|
- name: Update package manager
|
||||||
run: sudo apt-get update
|
run: sudo apt-get update
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install -y \
|
sudo apt-get install -y \
|
||||||
|
@ -27,12 +38,12 @@ jobs:
|
||||||
libsqlite3-dev \
|
libsqlite3-dev \
|
||||||
pkg-config
|
pkg-config
|
||||||
|
|
||||||
- name: Install Rust
|
# - name: Install Rust
|
||||||
uses: actions-rs/toolchain@v1
|
# uses: actions-rs/toolchain@v1
|
||||||
with:
|
# with:
|
||||||
toolchain: stable
|
# toolchain: stable
|
||||||
override: true
|
# override: true
|
||||||
default: true
|
# default: true
|
||||||
|
|
||||||
- name: "Run clippy (ignores errors, this is just a check)"
|
- name: "Run clippy (ignores errors, this is just a check)"
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
|
|
3
.github/workflows/debian_package_kanidm.yml
vendored
3
.github/workflows/debian_package_kanidm.yml
vendored
|
@ -6,6 +6,9 @@ on:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
jobs:
|
jobs:
|
||||||
build-deb-package:
|
build-deb-package:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
3
.github/workflows/dependency_review.yml
vendored
3
.github/workflows/dependency_review.yml
vendored
|
@ -8,6 +8,9 @@ name: 'Dependency Review'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
jobs:
|
jobs:
|
||||||
dependency-review:
|
dependency-review:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
3
.github/workflows/docker_build_kanidm.yml
vendored
3
.github/workflows/docker_build_kanidm.yml
vendored
|
@ -11,6 +11,9 @@ name: Container - Kanidm
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
jobs:
|
jobs:
|
||||||
kanidm_build:
|
kanidm_build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
3
.github/workflows/docker_build_kanidmd.yml
vendored
3
.github/workflows/docker_build_kanidmd.yml
vendored
|
@ -11,6 +11,9 @@ name: Container - Kanidmd
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
jobs:
|
jobs:
|
||||||
kanidmd_build:
|
kanidmd_build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
3
.github/workflows/docker_build_radiusd.yml
vendored
3
.github/workflows/docker_build_radiusd.yml
vendored
|
@ -11,6 +11,9 @@ name: Container - Radiusd
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
jobs:
|
jobs:
|
||||||
radius_build:
|
radius_build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
5
.github/workflows/kanidm_book.yml
vendored
5
.github/workflows/kanidm_book.yml
vendored
|
@ -6,7 +6,9 @@ name: GitHub Pages
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
jobs:
|
jobs:
|
||||||
deploy_book:
|
deploy_book:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -49,6 +51,7 @@ jobs:
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.10'
|
||||||
|
cache: 'poetry'
|
||||||
- name: pykanidm docs
|
- name: pykanidm docs
|
||||||
run: |
|
run: |
|
||||||
python -m pip install poetry
|
python -m pip install poetry
|
||||||
|
|
6
.github/workflows/pykanidm_mypy.yml
vendored
6
.github/workflows/pykanidm_mypy.yml
vendored
|
@ -4,6 +4,9 @@ name: pykanidm - mypy
|
||||||
"on":
|
"on":
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
jobs:
|
jobs:
|
||||||
pykanidm_mypy:
|
pykanidm_mypy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -11,10 +14,13 @@ jobs:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
||||||
|
- name: Install poetry
|
||||||
|
run: pipx install poetry
|
||||||
- name: Set up Python 3.10
|
- name: Set up Python 3.10
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.10'
|
||||||
|
cache: 'poetry'
|
||||||
- name: Running mypy
|
- name: Running mypy
|
||||||
run: |
|
run: |
|
||||||
cd pykanidm
|
cd pykanidm
|
||||||
|
|
6
.github/workflows/pykanidm_pylint.yml
vendored
6
.github/workflows/pykanidm_pylint.yml
vendored
|
@ -4,6 +4,9 @@ name: pykanidm - pylint
|
||||||
"on":
|
"on":
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
jobs:
|
jobs:
|
||||||
pykanidm_pylint:
|
pykanidm_pylint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -11,10 +14,13 @@ jobs:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
||||||
|
- name: Install poetry
|
||||||
|
run: pipx install poetry
|
||||||
- name: Set up Python 3.10
|
- name: Set up Python 3.10
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.10'
|
||||||
|
cache: 'poetry'
|
||||||
- name: Running tests
|
- name: Running tests
|
||||||
run: |
|
run: |
|
||||||
cd pykanidm
|
cd pykanidm
|
||||||
|
|
7
.github/workflows/pykanidm_pytest.yml
vendored
7
.github/workflows/pykanidm_pytest.yml
vendored
|
@ -4,6 +4,10 @@ name: pykanidm - pytest
|
||||||
"on":
|
"on":
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
jobs:
|
jobs:
|
||||||
pykanidm_pytest:
|
pykanidm_pytest:
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -16,10 +20,13 @@ jobs:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
||||||
|
- name: Install poetry
|
||||||
|
run: pipx install poetry
|
||||||
- name: Set up Python ${{matrix.python_version}}
|
- name: Set up Python ${{matrix.python_version}}
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{matrix.python_version}}
|
python-version: ${{matrix.python_version}}
|
||||||
|
cache: 'poetry'
|
||||||
- name: Running pytest
|
- name: Running pytest
|
||||||
run: |
|
run: |
|
||||||
cd pykanidm
|
cd pykanidm
|
||||||
|
|
25
.github/workflows/rust_build.yml
vendored
25
.github/workflows/rust_build.yml
vendored
|
@ -7,10 +7,23 @@ name: "Rust Build"
|
||||||
- master
|
- master
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
jobs:
|
jobs:
|
||||||
rust_build:
|
rust_build:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
|
- name: Restore our cache
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cargo/bin/
|
||||||
|
~/.cargo/registry/index/
|
||||||
|
~/.cargo/registry/cache/
|
||||||
|
~/.cargo/git/db/
|
||||||
|
target/
|
||||||
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Update package manager
|
- name: Update package manager
|
||||||
|
@ -24,12 +37,12 @@ jobs:
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libsqlite3-dev
|
libsqlite3-dev
|
||||||
|
|
||||||
- name: Install Rust
|
# - name: Install Rust
|
||||||
uses: actions-rs/toolchain@v1
|
# uses: actions-rs/toolchain@v1
|
||||||
with:
|
# with:
|
||||||
toolchain: stable
|
# toolchain: stable
|
||||||
override: true
|
# override: true
|
||||||
default: true
|
# default: true
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
|
|
25
.github/workflows/rust_test.yml
vendored
25
.github/workflows/rust_test.yml
vendored
|
@ -6,10 +6,23 @@ name: "Rust Test"
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
jobs:
|
jobs:
|
||||||
rust_test:
|
rust_test:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
|
- name: Restore our cache
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cargo/bin/
|
||||||
|
~/.cargo/registry/index/
|
||||||
|
~/.cargo/registry/cache/
|
||||||
|
~/.cargo/git/db/
|
||||||
|
target/
|
||||||
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Update package manager
|
- name: Update package manager
|
||||||
|
@ -23,12 +36,12 @@ jobs:
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libsqlite3-dev
|
libsqlite3-dev
|
||||||
|
|
||||||
- name: Install Rust
|
# - name: Install Rust
|
||||||
uses: actions-rs/toolchain@v1
|
# uses: actions-rs/toolchain@v1
|
||||||
with:
|
# with:
|
||||||
toolchain: stable
|
# toolchain: stable
|
||||||
override: true
|
# override: true
|
||||||
default: true
|
# default: true
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue