build: add CI workflow 🕺 (#671)
* build: add CI workflow 🕺 Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com> * refactor: use correct event in CT workflow Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com> * feat: setup Pipeline 🚰 Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com> * style: fix lint issues in Dockerfile Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com> * refactor: automerger now requires CI & CT Workflows Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com> * chore: add name for CodeQL workflow Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com> * fix: add ignore files for prettier & eslint Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com> * chore(deps): bump pinned apt-get packages Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com> * feat: add `hadolint` config file Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com> * fix: correct workflow file for automerger Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com> * style: remove pinned versions of apt deps Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com> Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
name: 'The Pipeline'
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
|
||||
concurrency:
|
||||
group: ci-${{ github.ref }}-1
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
extract-branch:
|
||||
name: 'Fetch branch'
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
current_branch: ${{ steps.get-branch.outputs.current_branch }}
|
||||
steps:
|
||||
- name: Extract branch name 🕊
|
||||
id: get-branch
|
||||
run: echo "current_branch=${GITHUB_REF##*/}" >> $GITHUB_OUTPUT
|
||||
ci:
|
||||
name: 'CI'
|
||||
needs:
|
||||
- extract-branch
|
||||
uses: maptiler/tileserver-gl/.github/workflows/ci.yml@master
|
||||
ct:
|
||||
name: 'CT'
|
||||
needs:
|
||||
- extract-branch
|
||||
uses: maptiler/tileserver-gl/.github/workflows/ct.yml@master
|
||||
automerger:
|
||||
name: 'Automerge Dependabot PRs'
|
||||
needs:
|
||||
- ci
|
||||
- ct
|
||||
- extract-branch
|
||||
if: >
|
||||
github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]'
|
||||
uses: maptiler/tileserver-gl/.github/workflows/automerger.yml@master
|
||||
Reference in New Issue
Block a user