Skip to content

Commit

Permalink
Cleanup CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gavv authored and Hrick87 committed Nov 11, 2023
1 parent bb41771 commit 254f680
Show file tree
Hide file tree
Showing 12 changed files with 60 additions and 51 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/assign_project.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
name: "assign project"
name: "assign_project"

on:
issues:
types:
- opened

jobs:
assign-project:
main:
runs-on: ubuntu-latest
steps:
- uses: alex-page/[email protected]
continue-on-error: true
with:
repo-token: "${{ secrets.REPO_MANAGEMENT }}"
project: "kanban board"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
name: "set dashboard columns"
name: "assign_project_columns"

on:
issues:
types: [labeled]
types:
- labeled

jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: konradpabjan/[email protected]
continue-on-error: true
with:
action-token: "${{ secrets.REPO_MANAGEMENT }}"
project-url: "https://github.com/roc-streaming/roc-toolkit/projects/2"
Expand Down
18 changes: 3 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,8 @@ name: "build"

on:
push:
branches:
- master
- develop
- feature/*
tags:
- v*

pull_request:
branches:
- master
- develop

workflow_dispatch:

schedule:
- cron: '0 0 * * 1'

Expand Down Expand Up @@ -124,13 +112,13 @@ jobs:
matrix:
include:
- script: linux-checks/conditional-build
image: rocstreaming/env-ubuntu-minimal
image: rocstreaming/env-ubuntu:nolibs

- script: linux-checks/static-shared
image: rocstreaming/env-ubuntu-minimal
image: rocstreaming/env-ubuntu:nolibs

- script: linux-checks/debug-build
image: rocstreaming/env-ubuntu-minimal
image: rocstreaming/env-ubuntu:nolibs

- script: linux-checks/sanitizers
image: rocstreaming/env-ubuntu
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/detect_conflicts.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
name: "detect conflicts"
name: "detect_conflicts"

on:
push:
branches:
- "*"
tags:
- "!*"
pull_request:
types: synchronize
pull_request_target:
types:
- synchronize

jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Run the action to detect unmergeable PRs
uses: cats-oss/[email protected]
env:
LABEL_NEED_REBASE: "needs rebase"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- uses: eps1lon/[email protected]
with:
dirtyLabel: "needs rebase"
repoToken: "${{ secrets.GITHUB_TOKEN }}"
commentOnDirty: ":robot: The latest upstream change made this pull request unmergeable.
Please resolve the merge conflicts."
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: "remove labels"
name: "pr_closed"

on:
pull_request:
types:
- closed

jobs:
remove-labels:
main:
runs-on: ubuntu-latest
steps:
- uses: andymckay/labeler@master
- uses: andymckay/labeler@1.0.4
with:
remove-labels: 'work in progress,ready for review,review in progress,needs revision'
remove-labels: 'work in progress,ready for review,review in progress,needs revision,needs rebase'
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
name: "lint pr"
name: "pr_opened"

on:
pull_request_target:
types:
- opened

jobs:

lint:
main:
runs-on: ubuntu-latest
steps:

- name: Check linked issue
id: linked-issues
uses: nearform-actions/[email protected]
Expand Down Expand Up @@ -43,7 +41,7 @@ jobs:
steps.mentioned-issues.outputs.result == 'false'
uses: thollander/actions-comment-pull-request@v2
with:
message: "Upon creation, pull request description does not have a link to an issue.
message: ":robot: Upon creation, pull request description does not have a link to an issue.
If there is a related issue, please add it to the description
using any of the [supported formats](https://docs.github.com/en/get-started/\
writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls)."
15 changes: 15 additions & 0 deletions .github/workflows/pr_ready.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "pr_ready"

on:
pull_request_target:
types:
- review_requested

jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: andymckay/[email protected]
with:
add-labels: 'ready for review'
remove-labels: 'work in progress,needs revision'
16 changes: 16 additions & 0 deletions .github/workflows/pr_wip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "pr_wip"

on:
pull_request_target:
types:
- converted_to_draft
- review_request_removed

jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: andymckay/[email protected]
with:
add-labels: 'work in progress'
remove-labels: 'ready for review,needs revision'
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
tags:
- v*

workflow_dispatch:

jobs:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/triggers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ on:
- master

jobs:

triggers:
main:
if: |
github.repository_owner == 'roc-streaming'
Expand Down
3 changes: 1 addition & 2 deletions docs/sphinx/development/continuous_integration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@ rocstreaming/env-ubuntu:20.04 ubuntu:20.04 x86_64 gcc-8, g
rocstreaming/env-ubuntu:18.04 ubuntu:18.04 x86_64 gcc-6, clang-6
rocstreaming/env-ubuntu:16.04 ubuntu:16.04 x86_64 gcc-4.8, clang-3.7
rocstreaming/env-ubuntu:14.04 ubuntu:14.04 x86_64 gcc-4.4, clang-3.4
rocstreaming/env-ubuntu-minimal ubuntu:latest x86_64 distro default
rocstreaming/env-ubuntu:nolibs ubuntu:latest x86_64 distro default
rocstreaming/env-debian debian:stable x86_64 distro default
rocstreaming/env-fedora fedora:latest x86_64 distro default
rocstreaming/env-centos centos:latest x86_64 distro default
rocstreaming/env-opensuse opensuse/leap:latest x86_64 distro default
rocstreaming/env-archlinux archlinux/base:latest x86_64 distro default
rocstreaming/env-alpine alpine:latest x86_64 distro default
Expand Down
10 changes: 0 additions & 10 deletions scripts/ci_checks/linux-x86_64/centos.sh

This file was deleted.

0 comments on commit 254f680

Please sign in to comment.