Skip to content

Commit 2a01466

Browse files
committed
chore: refactor workflows
1 parent 27b1a10 commit 2a01466

File tree

7 files changed

+231
-176
lines changed

7 files changed

+231
-176
lines changed

.config/linkspector.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
files:
2+
- README.md
3+
dirs:
4+
- ./
5+
useGitIgnore: true

.github/workflows/cmake.yml

+7-8
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
name: C++ CMake Test
33

44
on:
5-
# push:
6-
# branches:
7-
# - main
8-
# paths:
9-
# - 'cpp-algorithm/**'
10-
# schedule:
11-
# - cron: '0 0 * * *'
5+
# at 08:00 on day-of-month 1
6+
schedule:
7+
# prettier-ignore
8+
- cron: '0 8 1 * *'
129
workflow_dispatch:
1310

1411
env:
1512
BUILD_TYPE: Release
1613

1714
jobs:
15+
check-links:
16+
uses: ./.github/workflows/link-check.yml
17+
1818
build:
1919
runs-on: ubuntu-latest
2020

@@ -27,7 +27,6 @@ jobs:
2727
2828
- name: Install dependencies
2929
run: |
30-
sudo apt-get update
3130
sudo apt install -y ninja-build
3231
3332
- name: Setup vcpkg

.github/workflows/go.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
name: Go Test
33

44
on:
5-
# push:
6-
# branches:
7-
# - main
8-
# paths:
9-
# - 'go-algorithm/**'
10-
# schedule:
11-
# - cron: '0 0 * * *'
5+
# at 08:00 on day-of-month 1
6+
schedule:
7+
# prettier-ignore
8+
- cron: '0 8 1 * *'
129
workflow_dispatch:
1310

1411
jobs:
12+
check-links:
13+
uses: ./.github/workflows/link-check.yml
14+
1515
build:
1616
runs-on: ubuntu-latest
1717

.github/workflows/gradle.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
name: Java Gradle Test
33

44
on:
5-
# push:
6-
# branches:
7-
# - main
8-
# paths:
9-
# - 'java-algorithm/**'
10-
# schedule:
11-
# - cron: '0 0 * * *'
5+
# at 08:00 on day-of-month 1
6+
schedule:
7+
# prettier-ignore
8+
- cron: '0 8 1 * *'
129
workflow_dispatch:
1310

1411
jobs:
12+
check-links:
13+
uses: ./.github/workflows/link-check.yml
14+
1515
build:
1616
runs-on: ubuntu-latest
1717

.github/workflows/link-check.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Markdown Link Check
2+
3+
on:
4+
# every monday at 08:00
5+
schedule:
6+
# prettier-ignore
7+
- cron: '0 8 * * 1'
8+
workflow_call:
9+
workflow_dispatch:
10+
11+
jobs:
12+
check-links:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: umbrelladocs/action-linkspector@v1
17+
with:
18+
fail_on_error: true
19+
# prettier-ignore
20+
config_file: '.config/linkspector.yml'

.github/workflows/poetry.yml

+7-8
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
name: Python Poetry Test
33

44
on:
5-
# push:
6-
# branches:
7-
# - main
8-
# paths:
9-
# - 'python-algorithm/**'
10-
# schedule:
11-
# - cron: '0 0 * * *'
5+
# at 08:00 on day-of-month 1
6+
schedule:
7+
# prettier-ignore
8+
- cron: '0 8 1 * *'
129
workflow_dispatch:
1310

1411
jobs:
12+
check-links:
13+
uses: ./.github/workflows/link-check.yml
14+
1515
build:
1616
runs-on: ubuntu-latest
1717

@@ -27,7 +27,6 @@ jobs:
2727
- name: Install dependencies
2828
working-directory: ${{github.workspace}}/python-algorithm
2929
run: |
30-
python -m pip install --upgrade pip
3130
pip install poetry
3231
poetry install --with test
3332

README.md

+178-146
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)