Skip to content

Commit 3298374

Browse files
Merge remote-tracking branch 'origin/master' into number_range_filter
2 parents e15d507 + 482feae commit 3298374

File tree

463 files changed

+17282
-13420
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

463 files changed

+17282
-13420
lines changed

.github/workflows/master-push.yml

Lines changed: 0 additions & 67 deletions
This file was deleted.
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
name: Master Push
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
create-and-deploy-compodoc:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository files
13+
uses: actions/checkout@v4
14+
15+
- name: Install dependencies
16+
run: npm install @compodoc/compodoc
17+
18+
- name: Run compodoc
19+
run: npm run compodoc
20+
21+
- name: Deploy on pages
22+
uses: peaceiris/actions-gh-pages@v4
23+
with:
24+
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
publish_dir: doc/compodoc
26+
destination_dir: documentation
27+
force_orphan: true
28+
29+
test:
30+
strategy:
31+
fail-fast: false
32+
matrix:
33+
platform:
34+
- linux/amd64
35+
- linux/arm64
36+
os:
37+
- ubuntu-latest
38+
- [ self-hosted, Linux, ARM64 ]
39+
exclude:
40+
- platform: linux/arm64
41+
os: ubuntu-latest
42+
- platform: linux/amd64
43+
os: [ self-hosted, Linux, ARM64 ]
44+
runs-on: ${{ matrix.os }}
45+
steps:
46+
- name: Checkout repository files
47+
uses: actions/checkout@v4
48+
49+
- name: Set up QEMU
50+
uses: docker/setup-qemu-action@v3
51+
52+
- name: Set up Docker Buildx
53+
uses: docker/setup-buildx-action@v3
54+
55+
- name: Run tests in Docker image
56+
uses: docker/build-push-action@v6
57+
with:
58+
platforms: ${{ matrix.platform }}
59+
context: ./
60+
file: ./build/Dockerfile
61+
builder: ${{ steps.buildx.outputs.name }}
62+
target: test
63+
64+
- name: Run tests with timezone
65+
if: ${{ matrix.platform == 'linux/amd64' }}
66+
uses: docker/build-push-action@v6
67+
with:
68+
platforms: ${{ matrix.platform }}
69+
context: ./
70+
file: ./build/Dockerfile
71+
builder: ${{ steps.buildx.outputs.name }}
72+
target: test
73+
build-args: |
74+
TZ=America/Detroit
75+
76+
pre-release:
77+
runs-on: ubuntu-latest
78+
needs:
79+
- test
80+
steps:
81+
- name: Checkout repository files
82+
uses: actions/checkout@v4
83+
with:
84+
persist-credentials: false
85+
86+
- name: Set up node
87+
uses: actions/setup-node@v4
88+
89+
- name: Semantic Release
90+
uses: cycjimmy/semantic-release-action@v4
91+
env:
92+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
93+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
94+
with:
95+
extra_plugins: |
96+
97+
@semantic-release/git
98+
@semantic-release/github
99+
semantic-release-slack-bot
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Semantic Release
2+
on:
3+
push:
4+
branches:
5+
- official-release
6+
7+
jobs:
8+
pre-releases-cleanup:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Delete Previous Pre-Releases
12+
# todo: not maintained anymore, needs replacement
13+
uses: dev-drprasad/[email protected]
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
16+
with:
17+
keep_latest: 0
18+
delete_tag_pattern: master
19+
delete_tags: true
20+
21+
release:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout repository files
25+
uses: actions/checkout@v4
26+
with:
27+
persist-credentials: false
28+
29+
- name: Set up node
30+
uses: actions/setup-node@v4
31+
32+
- name: Semantic Release
33+
uses: cycjimmy/semantic-release-action@v4
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
36+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
37+
with:
38+
extra_plugins: |
39+
40+
@semantic-release/git
41+
@semantic-release/github
42+
semantic-release-slack-bot

.github/workflows/percy.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@ jobs:
1212
if: github.event_name == 'push' || github.event.pull_request.draft == false
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
16-
- uses: actions/setup-node@v3
15+
- name: Checkout repository files
16+
uses: actions/checkout@v4
17+
18+
- name: Set up node
19+
uses: actions/setup-node@v4
1720
with:
1821
node-version: "16"
19-
cache: npm
22+
2023
- run: npm ci
24+
2125
- run: npm run percy-storybook
2226
env:
2327
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}

.github/workflows/pre-release-cleanup.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/project-management-workflow.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,21 @@ jobs:
88
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
99
steps:
1010
- name: move-assigned-issues-to-column-in-progress
11+
# todo: not maintained anymore, replace this
1112
uses: docker://takanabe/github-actions-automate-projects:v0.0.1
1213
if: github.event_name == 'issues' && github.event.action == 'assigned'
1314
env:
1415
GITHUB_PROJECT_URL: https://github.com/Aam-Digital/ndb-core/projects/6
1516
GITHUB_PROJECT_COLUMN_NAME: In progress
1617
- name: move-unassigned-issues-to-column-todo
18+
# todo: not maintained anymore, replace this
1719
uses: docker://takanabe/github-actions-automate-projects:v0.0.1
1820
if: github.event_name == 'issues' && github.event.action == 'unassigned'
1921
env:
2022
GITHUB_PROJECT_URL: https://github.com/Aam-Digital/ndb-core/projects/6
2123
GITHUB_PROJECT_COLUMN_NAME: To do
2224
- name: add-issues-with-current-milestone-to-project
25+
# todo: not maintained anymore, replace this
2326
uses: docker://takanabe/github-actions-automate-projects:v0.0.1
2427
if: github.event.action == 'milestoned' && github.issue.milestone.html_url == 'https://github.com/Aam-Digital/ndb-core/milestone/19'
2528
env:
Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
1-
name: CleanUp
1+
name: Pull Request - Clean Up
2+
23
on:
34
pull_request_target:
45
types: [closed]
56

7+
env:
8+
GH_TOKEN: ${{ github.token }}
9+
610
jobs:
711
remove-deployment:
812
runs-on: ubuntu-latest
913
steps:
10-
- uses: actions/checkout@v3
14+
- name: Checkout repository files
15+
uses: actions/checkout@v4
16+
1117
- name: Stop container and remove folder
1218
uses: appleboy/ssh-action@master
19+
continue-on-error: true
1320
with:
1421
host: ${{ secrets.SSH_HOST }}
1522
username: ${{ secrets.SSH_USERNAME }}
@@ -19,9 +26,17 @@ jobs:
1926
docker compose down
2027
cd ..
2128
rm -r pr-${{ github.event.number }}
29+
2230
- name: Delete Docker tag
31+
continue-on-error: true
2332
run: |
2433
token=$(curl -s -L 'https://hub.docker.com/v2/users/login' -H 'Content-Type: application/json' -d '{ "username": "${{ secrets.DOCKER_USERNAME }}", "password": "${{ secrets.DOCKER_PASSWORD }}"}')
2534
token=${token#*\"token\":\"}
2635
token=${token%%\"*}
2736
curl -s -L -X DELETE "https://hub.docker.com/v2/namespaces/aamdigital/repositories/ndb-server/tags/pr-${{ github.event.number }}" -H "Authorization: Bearer $token"
37+
38+
- name: Delete github caches for current branch
39+
run: |
40+
gh cache list -L 200 --ref "refs/pull/${{ github.event.number }}/merge" --json id --jq '.[] | .id' | while read -r id; do
41+
gh cache delete "$id"
42+
done

.github/workflows/pull-request-opened.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: SetUp
1+
name: Pull Request - Set Up
22

33
permissions:
44
pull-requests: write
@@ -11,7 +11,9 @@ jobs:
1111
create-deployment:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- name: Checkout repository files
15+
uses: actions/checkout@v4
16+
1517
- name: Prepare server deployment
1618
uses: appleboy/ssh-action@master
1719
with:
@@ -22,6 +24,7 @@ jobs:
2224
cd /var/docker
2325
cp -r x-pr pr-${{ github.event.number }}
2426
sed -i "s/<PR_NUMBER>/${{ github.event.number }}/g" pr-${{ github.event.number }}/docker-compose.yml
27+
2528
- name: Post comment on PR
2629
run: |
2730
curl -X POST \

0 commit comments

Comments
 (0)