Skip to content

Commit

Permalink
Add GitHub workflows
Browse files Browse the repository at this point in the history
Add configuration files (`.yml`) for GitHub Actions.

Signed-off-by: Razvan Deaconescu <[email protected]>
  • Loading branch information
razvand committed Dec 26, 2023
1 parent 0491500 commit 01e2b99
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
topic/functions:
- chapters/functions/**/*

topic/multivar-power:
- chapters/multivariate-to-power/**/*

topic/numbers-indices:
- chapters/numbers-to-indices/**/*

topic/vectors-matrix:
- chapters/vectors-matrix-ops/**/*

area/reading:
- '**/reading/*'
- '**/reading/**/*'

area/media:
- '**/media/*'
- '**/media/**/*'

area/slides:
- '**/slides/*'
- '**/slides/**/*'

area/guides:
- '**/guides/*'
- '**/guides/**/*'

area/drills:
- '**/drills/*'
- '**/drills/**/*'

area/projects:
- '**/projects/*'
- '**/projects/**/*'

area/infra:
- 'scripts/**/*'
- '.github/**/*'
15 changes: 15 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Prerequisite Checklist

<!--
Please mark items appropriately:
-->

- [ ] Read the [contribution guidelines](https://github.com/open-education-hub/ccas-internal/blob/main/CONTRIBUTING.md#pull-requests) regarding submitting new changes to the project;
- [ ] Tested your changes against relevant architectures and platforms;
- [ ] Updated relevant documentation (if needed).

## Description of changes

<!--
Please provide a detailed description of the changes made in this new PR.
-->
34 changes: 34 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Linter Actions Workflow

on:
pull_request:
branches:
- main

jobs:
checkpatch:
name: Checkpatch
runs-on: ubuntu-latest
steps:
- name: Checkpatch
uses: open-education-hub/actions/checkpatch@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

super-linter:
name: Super Linter
runs-on: ubuntu-latest
steps:
- name: Super Linter
uses: open-education-hub/actions/super-linter@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

spellcheck:
name: Spellcheck
runs-on: ubuntu-latest
steps:
- name: Spellcheck
uses: open-education-hub/actions/spellcheck@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16 changes: 16 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Labeler Actions Workflow

on:
schedule:
- cron: "0 */12 * * *"
workflow_dispatch:

jobs:
labeler:
name: Labeler
runs-on: ubuntu-latest
steps:
- name: Labeler
uses: open-education-hub/actions/cron-labeler@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 01e2b99

Please sign in to comment.