-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into release_v0_33_0_6
Signed-off-by: Stef3st <[email protected]>
- Loading branch information
Showing
1,054 changed files
with
432,685 additions
and
6,026 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# SPDX-FileCopyrightText: 2022 Alliander N.V. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
version: 2 | ||
|
||
updates: | ||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
open-pull-requests-limit: 5 | ||
- package-ecosystem: "docker" | ||
directory: "packages/compas-openscd/" | ||
schedule: | ||
interval: "daily" | ||
open-pull-requests-limit: 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# SPDX-FileCopyrightText: 2022 Alliander N.V. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
changelog: | ||
exclude: | ||
labels: | ||
- wontfix | ||
- duplicate | ||
- invalid | ||
categories: | ||
- title: New Features | ||
labels: | ||
- enhancement | ||
- title: Bugfixes | ||
labels: | ||
- bug | ||
- title: Tooling changes | ||
labels: | ||
- tooling | ||
- title: Dependency updates | ||
labels: | ||
- dependencies | ||
- title: Other Changes | ||
labels: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# SPDX-FileCopyrightText: 2022 Alliander N.V. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Add issues and pull request to project boards | ||
|
||
on: [ issues, pull_request, pull_request_target ] | ||
|
||
jobs: | ||
github-actions-automate-projects: | ||
runs-on: ubuntu-latest | ||
|
||
if: ${{ (github.event_name != 'pull_request_target' && github.actor != 'dependabot[bot]') || (github.actor == 'dependabot[bot]' && github.event_name == 'pull_request_target') }} | ||
steps: | ||
- name: add-new-issues-to-organization-based-project-column | ||
if: github.event_name == 'issues' && github.event.action == 'opened' | ||
uses: alex-page/[email protected] | ||
with: | ||
project: CoMPAS Issues Overview Board | ||
column: To do | ||
repo-token: ${{ secrets.ORG_GITHUB_ACTION_SECRET }} | ||
- name: add-new-pull-request-to-organization-based-project-column | ||
if: (github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && github.event.action == 'opened' | ||
uses: alex-page/[email protected] | ||
with: | ||
project: CoMPAS Pull Request Overview Board | ||
column: To do | ||
repo-token: ${{ secrets.ORG_GITHUB_ACTION_SECRET }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# SPDX-FileCopyrightText: 2022 Alliander N.V. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Build Project | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
pull_request: | ||
branches: | ||
- 'main' | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 45 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Cache Docker Register | ||
if: ${{ github.event_name == 'pull_request' }} | ||
uses: actions/cache@v3 | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-buildx-${{ hashFiles('**/Dockerfile') }} | ||
|
||
- name: Set up Docker Buildx | ||
id: buildx | ||
if: ${{ github.event_name == 'pull_request' }} | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Use Node.js 14.x | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '14.x' | ||
|
||
- name: Test application with npm | ||
timeout-minutes: 45 | ||
if: ${{ github.event_name == 'push' }} | ||
run: | | ||
cd packages/compas-open-scd | ||
npm ci | ||
npm run-script test | ||
- name: Build application with npm | ||
if: ${{ github.event_name == 'pull_request' }} | ||
timeout-minutes: 45 | ||
run: | | ||
cd packages/compas-open-scd | ||
npm ci | ||
npm run-script build | ||
- name: Build docker image | ||
if: ${{ github.event_name == 'pull_request' }} | ||
uses: docker/build-push-action@v5 | ||
with: | ||
# Set the context to use the packages/compas-open-scd directory and not execute it's own git checkout. | ||
context: packages/compas-open-scd | ||
push: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# SPDX-FileCopyrightText: 2022 Alliander N.V. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Release Project | ||
|
||
on: | ||
release: | ||
types: [released] | ||
|
||
jobs: | ||
push_to_registry: | ||
name: Build and publish | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 45 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Cache Docker Register | ||
uses: actions/cache@v3 | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-buildx-${{ hashFiles('**/Dockerfile') }} | ||
|
||
- name: Extract tag name | ||
id: extract_tagname | ||
shell: bash | ||
# Extra the tagname form the git reference, value of GITHUB_REF will be something like refs/tags/<tag_name>. | ||
run: echo "##[set-output name=tagname;]$(echo ${GITHUB_REF##*/})" | ||
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
password: ${{ secrets.DOCKER_HUB_TOKEN }} | ||
- name: Use Node.js 14.x | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '14.x' | ||
|
||
- name: Build application with npm | ||
run: | | ||
cd packages/compas-open-scd | ||
npm ci | ||
npm run-script build | ||
- name: Build and push docker image to Docker Hub | ||
uses: docker/build-push-action@v5 | ||
with: | ||
# Set the context to use the packages/compas-open-scd directory and not execute it's own git checkout. | ||
context: packages/compas-open-scd | ||
push: true | ||
# Tag the images using the tagname and also latest. | ||
tags: | | ||
lfenergy/compas-open-scd:${{ steps.extract_tagname.outputs.tagname }} | ||
lfenergy/compas-open-scd:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.