Skip to content

Commit

Permalink
Merge pull request #18 from maxkratz/feature/migrate-ci-to-actions
Browse files Browse the repository at this point in the history
Migrate CI to GitHub Actions
  • Loading branch information
maxkratz committed Jan 29, 2023
2 parents efa2596 + 59b7dbe commit e19e4a0
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 27 deletions.
26 changes: 0 additions & 26 deletions .drone.yml

This file was deleted.

54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CI Pipeline
on:
push:
branches:
- 'main'
- 'testing/**'
- 'feature/**'
- 'hotfix/**'

jobs:
lint:
runs-on: [ubuntu-22.04]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up
run: docker pull python:3.8
- name: Lint
run: docker run --rm -v $PWD:/data python:3.8 bash -c "cd /data && pip install -r requirements.txt && pylint --fail-under=9.0 -d pep8 matrix_synapse_saml_mapper/*.py setup.py"

build:
runs-on: [ubuntu-22.04]
needs: [lint]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up
run: pip install -r requirements.txt
- name: Build
run: python setup.py sdist bdist_wheel
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: python-build
path: |
build/
dist/
matrix_synapse_saml_mapper/
matrix_synapse_saml_mapper.egg-info
test-install:
runs-on: [ubuntu-22.04]
needs: [build]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up
run: pip install -r requirements.txt
- name: Download build
uses: actions/download-artifact@v3
with:
name: python-build
- name: Test installation
run: sudo python setup.py install
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Matrix Synapse SAML Mapper

[![Build Status](https://github.ci.maxkratz.com/api/badges/maxkratz/matrix-synapse-saml-mapper/status.svg?ref=refs/heads/main)](https://github.ci.maxkratz.com/maxkratz/matrix-synapse-saml-mapper)
[![CI Pipeline](https://github.com/maxkratz/matrix-synapse-saml-mapper/actions/workflows/ci.yml/badge.svg)](https://github.com/maxkratz/matrix-synapse-saml-mapper/actions/workflows/ci.yml)

A Synapse plugin module which allows administrators to ...
* ... concatenate and/or modify provided SAML attributes,
Expand Down

0 comments on commit e19e4a0

Please sign in to comment.