Skip to content

Commit

Permalink
Merge pull request #17 from com-pas/develop
Browse files Browse the repository at this point in the history
Merge branch 'develop' into main
  • Loading branch information
Flurb authored Sep 7, 2021
2 parents dd8df3c + 57bb68c commit 35212d3
Show file tree
Hide file tree
Showing 71 changed files with 1,116 additions and 362 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2021 Alliander N.V.
#
# SPDX-License-Identifier: Apache-2.0

#
# https://help.github.com/articles/dealing-with-line-endings/
#
Expand Down
29 changes: 29 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# SPDX-FileCopyrightText: 2021 Alliander N.V.
#
# SPDX-License-Identifier: Apache-2.0

version: 2

registries:
maven-github:
type: maven-repository
url: https://maven.pkg.github.com/com-pas/*
username: OWNER
password: ${{ secrets.DB_GITHUB_PACKAGES }}

updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 5

# Maintain dependencies for Maven
- package-ecosystem: "maven"
directory: "/"
registries:
- maven-github
schedule:
interval: "daily"
open-pull-requests-limit: 5
40 changes: 40 additions & 0 deletions .github/workflows/automate-projects.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# SPDX-FileCopyrightText: 2021 Alliander N.V.
#
# SPDX-License-Identifier: Apache-2.0

name: Add issues and pull request to project boards

on: [ issues, pull_request ]

jobs:
github-actions-automate-projects:
runs-on: ubuntu-latest
steps:
- name: add-new-issues-to-repository-based-project-column
uses: docker://takanabe/github-actions-automate-projects:v0.0.1
if: github.event_name == 'issues' && github.event.action == 'opened'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PROJECT_URL: https://github.com/com-pas/compas-scl-xsd/projects/1
GITHUB_PROJECT_COLUMN_NAME: To do
- name: add-new-pull-request-to-repository-based-project-column
uses: docker://takanabe/github-actions-automate-projects:v0.0.1
if: github.event_name == 'pull_request' && github.event.action == 'opened'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PROJECT_URL: https://github.com/com-pas/compas-scl-xsd/projects/1
GITHUB_PROJECT_COLUMN_NAME: To do
- name: add-new-issues-to-organization-based-project-column
uses: docker://takanabe/github-actions-automate-projects:v0.0.1
if: github.event_name == 'issues' && github.event.action == 'opened'
env:
GITHUB_TOKEN: ${{ secrets.ORG_GITHUB_ACTION_SECRET }}
GITHUB_PROJECT_URL: https://github.com/orgs/com-pas/projects/1
GITHUB_PROJECT_COLUMN_NAME: To do
- name: add-new-pull-request-to-organization-based-project-column
uses: docker://takanabe/github-actions-automate-projects:v0.0.1
if: github.event_name == 'pull_request' && github.event.action == 'opened'
env:
GITHUB_TOKEN: ${{ secrets.ORG_GITHUB_ACTION_SECRET }}
GITHUB_PROJECT_URL: https://github.com/orgs/com-pas/projects/2
GITHUB_PROJECT_COLUMN_NAME: To do
23 changes: 23 additions & 0 deletions .github/workflows/build-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# SPDX-FileCopyrightText: 2021 Alliander N.V.
#
# SPDX-License-Identifier: Apache-2.0

name: Build Project

on:
push:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.11
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '11'
- name: Build with Maven
run: ./mvnw -B clean verify
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2021 Alliander N.V.
#
# SPDX-License-Identifier: Apache-2.0

name: Check SCL XSD 1.7 version

on:
Expand All @@ -7,13 +11,13 @@ on:
jobs:
check_newer_version_job:
runs-on: ubuntu-latest
name: Checking for newer versions of the SCL XSD 1.7 schemas.
name: Checking for newer versions of the SCL XSD 2003 (aka 1.7) schemas.
steps:
- name: Check for difference in checksum.
id: verify
uses: Flurb/verify-file-checksum-action@v1
uses: Flurb/verify-file-checksum-action@v2
with:
file: 'https://assets.iec.ch/public/tc57/IEC_61850-6.2003.SCL.1.7.full.zip'
fileUrl: 'https://assets.iec.ch/public/tc57/IEC_61850-6.2003.SCL.1.7.full.zip'
checksum: '2f912148b013350e6d09ffce64866d9a'
algorithm: 'md5'
- name: Get the verify result
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/check-scl-xsd-2007B-version.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2021 Alliander N.V.
#
# SPDX-License-Identifier: Apache-2.0

name: Check SCL XSD 2007B version

on:
Expand All @@ -11,9 +15,9 @@ jobs:
steps:
- name: Check for difference in checksum.
id: verify
uses: Flurb/verify-file-checksum-action@v1
uses: Flurb/verify-file-checksum-action@v2
with:
file: 'https://assets.iec.ch/public/tc57/IEC_61850-6.2009.SCL.2007B.full.zip'
fileUrl: 'https://assets.iec.ch/public/tc57/IEC_61850-6.2009.SCL.2007B.full.zip'
checksum: '13dc10768c4ac8d58fcf70491eec3f3d'
algorithm: 'md5'
- name: Get the verify result
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/check-scl-xsd-2007B4-version.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2021 Alliander N.V.
#
# SPDX-License-Identifier: Apache-2.0

name: Check SCL XSD 2007B4 version

on:
Expand All @@ -11,9 +15,9 @@ jobs:
steps:
- name: Check for difference in checksum.
id: verify
uses: Flurb/verify-file-checksum-action@v1
uses: Flurb/verify-file-checksum-action@v2
with:
file: 'https://assets.iec.ch/public/tc57/IEC_61850-6.2018.SCL.2007B4.full.zip'
fileUrl: 'https://assets.iec.ch/public/tc57/IEC_61850-6.2018.SCL.2007B4.full.zip'
checksum: 'd61da94836ff974fbd781ad1bc967039'
algorithm: 'md5'
- name: Get the verify result
Expand Down
23 changes: 0 additions & 23 deletions .github/workflows/gradle_build.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/publish-gradle.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/release-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# SPDX-FileCopyrightText: 2021 Alliander N.V.
#
# SPDX-License-Identifier: Apache-2.0

name: Release Project

on:
release:
types: [released]

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- 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 JDK 1.11
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '11'
- name: Set version with Maven
run: ./mvnw -B versions:set -DprocessAllModules=true -DnewVersion=${{ steps.extract_tagname.outputs.tagname }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy with Maven to GitHub Packages
run: ./mvnw -B -Prelease clean deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15 changes: 15 additions & 0 deletions .github/workflows/reuse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# SPDX-FileCopyrightText: 2021 Alliander N.V.
#
# SPDX-License-Identifier: Apache-2.0

name: REUSE Compliance Check

on: push

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v1
12 changes: 11 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# SPDX-FileCopyrightText: 2021 Alliander N.V.
#
# SPDX-License-Identifier: Apache-2.0

# Ignore Gradle build output directory
build

.gradle
.project
.project
target

# IDE specific
.vscode/
.idea
*.iml
Loading

0 comments on commit 35212d3

Please sign in to comment.