Skip to content

Commit

Permalink
Release 3.41.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sleidig authored and tomwwinter committed Aug 29, 2024
2 parents 704d3ae + 19fb3eb commit 03d854c
Show file tree
Hide file tree
Showing 364 changed files with 10,332 additions and 9,658 deletions.
67 changes: 0 additions & 67 deletions .github/workflows/master-push.yml

This file was deleted.

99 changes: 99 additions & 0 deletions .github/workflows/on-master-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
name: Master Push

on:
push:
branches:
- master

jobs:
create-and-deploy-compodoc:
runs-on: ubuntu-latest
steps:
- name: Checkout repository files
uses: actions/checkout@v4

- name: Install dependencies
run: npm install @compodoc/compodoc

- name: Run compodoc
run: npm run compodoc

- name: Deploy on pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: doc/compodoc
destination_dir: documentation
force_orphan: true

test:
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
os:
- ubuntu-latest
- [ self-hosted, Linux, ARM64 ]
exclude:
- platform: linux/arm64
os: ubuntu-latest
- platform: linux/amd64
os: [ self-hosted, Linux, ARM64 ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository files
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Run tests in Docker image
uses: docker/build-push-action@v6
with:
platforms: ${{ matrix.platform }}
context: ./
file: ./build/Dockerfile
builder: ${{ steps.buildx.outputs.name }}
target: test

- name: Run tests with timezone
if: ${{ matrix.platform == 'linux/amd64' }}
uses: docker/build-push-action@v6
with:
platforms: ${{ matrix.platform }}
context: ./
file: ./build/Dockerfile
builder: ${{ steps.buildx.outputs.name }}
target: test
build-args: |
TZ=America/Detroit
pre-release:
runs-on: ubuntu-latest
needs:
- test
steps:
- name: Checkout repository files
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Set up node
uses: actions/setup-node@v4

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
with:
extra_plugins: |
[email protected]
@semantic-release/git
@semantic-release/github
semantic-release-slack-bot
42 changes: 42 additions & 0 deletions .github/workflows/on-official-release-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Semantic Release
on:
push:
branches:
- official-release

jobs:
pre-releases-cleanup:
runs-on: ubuntu-latest
steps:
- name: Delete Previous Pre-Releases
# todo: not maintained anymore, needs replacement
uses: dev-drprasad/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
keep_latest: 0
delete_tag_pattern: master
delete_tags: true

release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository files
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Set up node
uses: actions/setup-node@v4

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
with:
extra_plugins: |
[email protected]
@semantic-release/git
@semantic-release/github
semantic-release-slack-bot
10 changes: 7 additions & 3 deletions .github/workflows/percy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@ jobs:
if: github.event_name == 'push' || github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Checkout repository files
uses: actions/checkout@v4

- name: Set up node
uses: actions/setup-node@v4
with:
node-version: "16"
cache: npm

- run: npm ci

- run: npm run percy-storybook
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
18 changes: 0 additions & 18 deletions .github/workflows/pre-release-cleanup.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .github/workflows/project-management-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,21 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: move-assigned-issues-to-column-in-progress
# todo: not maintained anymore, replace this
uses: docker://takanabe/github-actions-automate-projects:v0.0.1
if: github.event_name == 'issues' && github.event.action == 'assigned'
env:
GITHUB_PROJECT_URL: https://github.com/Aam-Digital/ndb-core/projects/6
GITHUB_PROJECT_COLUMN_NAME: In progress
- name: move-unassigned-issues-to-column-todo
# todo: not maintained anymore, replace this
uses: docker://takanabe/github-actions-automate-projects:v0.0.1
if: github.event_name == 'issues' && github.event.action == 'unassigned'
env:
GITHUB_PROJECT_URL: https://github.com/Aam-Digital/ndb-core/projects/6
GITHUB_PROJECT_COLUMN_NAME: To do
- name: add-issues-with-current-milestone-to-project
# todo: not maintained anymore, replace this
uses: docker://takanabe/github-actions-automate-projects:v0.0.1
if: github.event.action == 'milestoned' && github.issue.milestone.html_url == 'https://github.com/Aam-Digital/ndb-core/milestone/19'
env:
Expand Down
19 changes: 17 additions & 2 deletions .github/workflows/pull-request-closed.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
name: CleanUp
name: Pull Request - Clean Up

on:
pull_request_target:
types: [closed]

env:
GH_TOKEN: ${{ github.token }}

jobs:
remove-deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout repository files
uses: actions/checkout@v4

- name: Stop container and remove folder
uses: appleboy/ssh-action@master
continue-on-error: true
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
Expand All @@ -19,9 +26,17 @@ jobs:
docker compose down
cd ..
rm -r pr-${{ github.event.number }}
- name: Delete Docker tag
continue-on-error: true
run: |
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 }}"}')
token=${token#*\"token\":\"}
token=${token%%\"*}
curl -s -L -X DELETE "https://hub.docker.com/v2/namespaces/aamdigital/repositories/ndb-server/tags/pr-${{ github.event.number }}" -H "Authorization: Bearer $token"
- name: Delete github caches for current branch
run: |
gh cache list -L 200 --ref "refs/pull/${{ github.event.number }}/merge" --json id --jq '.[] | .id' | while read -r id; do
gh cache delete "$id"
done
7 changes: 5 additions & 2 deletions .github/workflows/pull-request-opened.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: SetUp
name: Pull Request - Set Up

permissions:
pull-requests: write
Expand All @@ -11,7 +11,9 @@ jobs:
create-deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout repository files
uses: actions/checkout@v4

- name: Prepare server deployment
uses: appleboy/ssh-action@master
with:
Expand All @@ -22,6 +24,7 @@ jobs:
cd /var/docker
cp -r x-pr pr-${{ github.event.number }}
sed -i "s/<PR_NUMBER>/${{ github.event.number }}/g" pr-${{ github.event.number }}/docker-compose.yml
- name: Post comment on PR
run: |
curl -X POST \
Expand Down
Loading

0 comments on commit 03d854c

Please sign in to comment.