-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin' into mdc/julia_version_control
- Loading branch information
Showing
258 changed files
with
225 additions
and
64,197 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,59 +1,31 @@ | ||
name: On push, any branch | ||
|
||
on: [push] | ||
|
||
# TODO change pipeline-repo-actions to main | ||
jobs: | ||
run-script-server-test: | ||
run-yml-validation: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@v4 | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' | ||
# Repository name with owner. For example, actions/checkout | ||
# Default: ${{ github.repository }} | ||
repository: 'GEO-BON/bon-in-a-box-pipeline-engine.git' | ||
|
||
- name: Validate Gradle wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
# The branch, tag or SHA to checkout. When checking out the repository that | ||
# triggered a workflow, this defaults to the reference or SHA for that event. | ||
# Otherwise, uses the default branch. | ||
ref: 'main' | ||
|
||
- name: Gradle build & test | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: build --info | ||
build-root-directory: script-server | ||
|
||
- name: Save test results | ||
uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: Test results | ||
path: script-server/build/reports/tests/test/ | ||
# Relative path under $GITHUB_WORKSPACE to place the repository | ||
path: '.server' | ||
|
||
|
||
run-yml-validation: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: YML file syntax validation | ||
uses: navikt/yaml-validator@v4 | ||
with: | ||
schema_path: scripts/cerberusValidationSchema | ||
document_path: scripts | ||
validate_file_extension: no | ||
filter_extensions: .yml | ||
- name: YML test files syntax validation | ||
uses: navikt/yaml-validator@v4 | ||
with: | ||
schema_path: scripts/cerberusValidationSchema | ||
document_path: script-server/src/test/resources/scripts/ | ||
validate_file_extension: no | ||
filter_extensions: .yml | ||
- name: Find duplicate lines inside same step YML file | ||
working-directory: ./scripts | ||
run: ../.github/findDuplicateDescriptions.sh | ||
- name: Creating empty runner.env | ||
working-directory: . | ||
run: touch runner.env | ||
shell: bash | ||
- name: Find duplicate lines inside same pipeline JSON file | ||
working-directory: ./pipelines | ||
run: ../.github/findDuplicateIds.sh | ||
- name: Script and pipelines basic validation | ||
working-directory: . | ||
run: .server/prod-server.sh validate | ||
shell: bash |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
.env | ||
runner.env | ||
.Rproj.user | ||
.Rhistory | ||
.vscode | ||
**/.cache | ||
**/.config | ||
.server |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.