fixing up the automation tooling ()

This commit is contained in:
James Hodgkinson 2022-09-08 16:40:58 +10:00 committed by GitHub
parent 66954213db
commit 9ca7993397
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 80 additions and 70 deletions

View file

@ -1,3 +1,4 @@
---
name: Clippy
# Trigger the workflow on push or pull request
@ -7,25 +8,25 @@ jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
- name: Update package manager
run: sudo apt-get update
- name: Update package manager
run: sudo apt-get update
- name: Install dependencies
run: |
sudo apt-get install -y \
libpam0g-dev \
libudev-dev \
libssl-dev \
libsqlite3-dev \
pkg-config
- name: Install dependencies
run: |
sudo apt-get install -y \
libpam0g-dev \
libudev-dev \
libssl-dev \
libsqlite3-dev \
pkg-config
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: "Run clippy (ignores errors, this is just a check)"
run: cargo clippy --no-deps
continue-on-error: true
- name: "Run clippy (ignores errors, this is just a check)"
run: cargo clippy --no-deps
continue-on-error: true

View file

@ -1,5 +1,7 @@
---
name: 'Dependency Review'
on: [pull_request]
"on":
pull_request:
# https://github.com/actions/dependency-review-action

View file

@ -17,10 +17,10 @@ jobs:
steps:
- uses: actions/checkout@v3
# don't need qemu/buildx if we're not building ARM
#- name: Set up QEMU
# uses: docker/setup-qemu-action@v2
#- name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v2
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v2
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v2
- # https://github.com/docker/login-action/#github-container-registry
name: Login to GitHub Container Registry
uses: docker/login-action@v2
@ -37,6 +37,6 @@ jobs:
push: ${{ github.ref == 'refs/heads/master' }}
platforms: linux/amd64
tags: ghcr.io/kanidm/kanidmd:devel
#build-args: |
# "KANIDM_BUILD_OPTIONS=-j1"
# build-args: |
# "KANIDM_BUILD_OPTIONS=-j1"
file: kanidmd/Dockerfile

View file

@ -34,7 +34,7 @@ jobs:
uses: docker/build-push-action@v3
with:
push: ${{ github.ref == 'refs/heads/master' }}
platforms: linux/arm64,linux/amd64
platforms: linux/arm64,linux/amd64
# https://github.com/docker/build-push-action/issues/254
tags: ghcr.io/kanidm/radius:devel
context: .

View file

@ -1,3 +1,4 @@
---
name: GitHub Pages
"on":
@ -44,6 +45,10 @@ jobs:
export
./build_all_the_docs.sh
- name: Install python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: pykanidm docs
run: |
python -m pip install poetry
@ -52,6 +57,7 @@ jobs:
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs

View file

@ -1,3 +1,4 @@
---
name: pykanidm - mypy
"on":

View file

@ -1,3 +1,4 @@
---
name: pykanidm - pylint
"on":
@ -19,4 +20,4 @@ jobs:
cd pykanidm
python -m pip install --quiet --no-cache-dir --upgrade poetry
poetry install
poetry run pylint tests kanidm
poetry run pylint tests kanidm

View file

@ -1,3 +1,4 @@
---
name: pykanidm - pytest
"on":

View file

@ -1,31 +1,32 @@
---
name: "Rust Build"
# Trigger the workflow on push to master or pull request
"on":
push:
branches:
- master
- master
pull_request:
jobs:
rust_build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
- name: Update package manager
run: sudo apt-get update
- name: Update package manager
run: sudo apt-get update
- name: Install dependencies
run: |
sudo apt-get install -y \
libpam0g-dev \
libudev-dev \
libssl-dev \
libsqlite3-dev
- name: Install dependencies
run: |
sudo apt-get install -y \
libpam0g-dev \
libudev-dev \
libssl-dev \
libsqlite3-dev
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Build
run: cargo build --verbose
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Build
run: cargo build --verbose

View file

@ -1,34 +1,31 @@
---
name: "Rust Test"
# Trigger the workflow on push to master or pull request
"on":
push:
branches:
- master
pull_request:
jobs:
rust_test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
- name: Update package manager
run: sudo apt-get update
- name: Update package manager
run: sudo apt-get update
- name: Install dependencies
run: |
sudo apt-get install -y \
libpam0g-dev \
libudev-dev \
libssl-dev \
libsqlite3-dev
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Run tests
run: cargo test --verbose
- name: Install dependencies
run: |
sudo apt-get install -y \
libpam0g-dev \
libudev-dev \
libssl-dev \
libsqlite3-dev
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Run tests
run: cargo test --verbose

View file

@ -21,9 +21,9 @@ jobs:
- name: Install latest stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
components: cargo
toolchain: stable
default: true
components: cargo
- name: build
uses: actions-rs/cargo@v1
with:
@ -40,9 +40,9 @@ jobs:
- name: Install latest stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
components: cargo
toolchain: stable
default: true
components: cargo
- name: Run cargo test
uses: actions-rs/cargo@v1
with: