mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 12:37:00 +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:
|
||||
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
clippy:
|
||||
runs-on: ubuntu-latest
|
||||
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
|
||||
|
||||
- name: Update package manager
|
||||
run: sudo apt-get update
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get install -y \
|
||||
|
@ -27,12 +38,12 @@ jobs:
|
|||
libsqlite3-dev \
|
||||
pkg-config
|
||||
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
override: true
|
||||
default: true
|
||||
# - name: Install Rust
|
||||
# uses: actions-rs/toolchain@v1
|
||||
# with:
|
||||
# toolchain: stable
|
||||
# override: true
|
||||
# default: true
|
||||
|
||||
- name: "Run clippy (ignores errors, this is just a check)"
|
||||
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:
|
||||
pull_request:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
build-deb-package:
|
||||
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:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
dependency-review:
|
||||
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:
|
||||
- master
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
kanidm_build:
|
||||
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:
|
||||
- master
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
kanidmd_build:
|
||||
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:
|
||||
- master
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
radius_build:
|
||||
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:
|
||||
- master
|
||||
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
deploy_book:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -49,6 +51,7 @@ jobs:
|
|||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.10'
|
||||
cache: 'poetry'
|
||||
- name: pykanidm docs
|
||||
run: |
|
||||
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":
|
||||
push:
|
||||
pull_request:
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
pykanidm_mypy:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -11,10 +14,13 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
||||
- name: Install poetry
|
||||
run: pipx install poetry
|
||||
- name: Set up Python 3.10
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.10'
|
||||
cache: 'poetry'
|
||||
- name: Running mypy
|
||||
run: |
|
||||
cd pykanidm
|
||||
|
|
6
.github/workflows/pykanidm_pylint.yml
vendored
6
.github/workflows/pykanidm_pylint.yml
vendored
|
@ -4,6 +4,9 @@ name: pykanidm - pylint
|
|||
"on":
|
||||
push:
|
||||
pull_request:
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
pykanidm_pylint:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -11,10 +14,13 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
||||
- name: Install poetry
|
||||
run: pipx install poetry
|
||||
- name: Set up Python 3.10
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.10'
|
||||
cache: 'poetry'
|
||||
- name: Running tests
|
||||
run: |
|
||||
cd pykanidm
|
||||
|
|
7
.github/workflows/pykanidm_pytest.yml
vendored
7
.github/workflows/pykanidm_pytest.yml
vendored
|
@ -4,6 +4,10 @@ name: pykanidm - pytest
|
|||
"on":
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
pykanidm_pytest:
|
||||
strategy:
|
||||
|
@ -16,10 +20,13 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
||||
- name: Install poetry
|
||||
run: pipx install poetry
|
||||
- name: Set up Python ${{matrix.python_version}}
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{matrix.python_version}}
|
||||
cache: 'poetry'
|
||||
- name: Running pytest
|
||||
run: |
|
||||
cd pykanidm
|
||||
|
|
25
.github/workflows/rust_build.yml
vendored
25
.github/workflows/rust_build.yml
vendored
|
@ -7,10 +7,23 @@ name: "Rust Build"
|
|||
- master
|
||||
pull_request:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
rust_build:
|
||||
runs-on: ubuntu-20.04
|
||||
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
|
||||
|
||||
- name: Update package manager
|
||||
|
@ -24,12 +37,12 @@ jobs:
|
|||
libssl-dev \
|
||||
libsqlite3-dev
|
||||
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
override: true
|
||||
default: true
|
||||
# - name: Install Rust
|
||||
# uses: actions-rs/toolchain@v1
|
||||
# with:
|
||||
# toolchain: stable
|
||||
# override: true
|
||||
# default: true
|
||||
- name: Run tests
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
|
|
25
.github/workflows/rust_test.yml
vendored
25
.github/workflows/rust_test.yml
vendored
|
@ -6,10 +6,23 @@ name: "Rust Test"
|
|||
push:
|
||||
pull_request:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
rust_test:
|
||||
runs-on: ubuntu-20.04
|
||||
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
|
||||
|
||||
- name: Update package manager
|
||||
|
@ -23,12 +36,12 @@ jobs:
|
|||
libssl-dev \
|
||||
libsqlite3-dev
|
||||
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
override: true
|
||||
default: true
|
||||
# - name: Install Rust
|
||||
# uses: actions-rs/toolchain@v1
|
||||
# with:
|
||||
# toolchain: stable
|
||||
# override: true
|
||||
# default: true
|
||||
- name: Run tests
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
|
|
6
.github/workflows/wasm_test.yml
vendored
6
.github/workflows/wasm_test.yml
vendored
|
@ -44,9 +44,9 @@ jobs:
|
|||
chrome-version: latest
|
||||
# https://github.com/marketplace/actions/setup-chromedriver
|
||||
- uses: nanasess/setup-chromedriver@v1
|
||||
# with:
|
||||
# Optional: do not specify to match Chrome's version
|
||||
# chromedriver-version: '88.0.4324.96'
|
||||
# with:
|
||||
# Optional: do not specify to match Chrome's version
|
||||
# chromedriver-version: '88.0.4324.96'
|
||||
|
||||
# docs here:
|
||||
# https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/browsers.html
|
||||
|
|
Loading…
Reference in a new issue