Skip to content

Commit

Permalink
Set workflow permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
lesserwhirls committed Jan 11, 2025
1 parent d881782 commit 495a9a2
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deps.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
on: [pull_request]

permissions: {}

jobs:
check-dependency-availability:
name: Check fresh compile and assemble of TDS project
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
- 'docs/**'
- 'gradle/**'

permissions: {}

jobs:
check-doc-build:
name: TDS Documentation Build Check
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
on: [pull_request]

permissions: {}

jobs:
check-style:
name: Code Style Check
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/tds.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
on: [pull_request]

permissions: {}

jobs:
tds-tests:
name: TDS Tests
Expand All @@ -21,7 +23,7 @@ jobs:
env:
CONTENT_DIR: ${{ github.workspace }}/tds/src/test/content
- uses: actions/upload-artifact@v4
if: failure()
# if: failure()
with:
name: tds_JUnit_Results_${{ github.sha }}_AdoptOpenJDK-HS-${{ matrix.java }}-${{ matrix.servletcontainer }}
path: build/reports/allTests
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/update-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ on:
description: 'TDS .war URL'
required: true

permissions: {}

jobs:
post:
runs-on: ubuntu-latest
Expand Down
19 changes: 16 additions & 3 deletions tds-ui/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ ext.title = 'ToolsUI for the TDS'
ext.url = 'https://www.unidata.ucar.edu/software/tds/'

apply from: "$rootDir/gradle/any/dependencies.gradle"
apply plugin: 'application'
apply from: "$rootDir/gradle/any/java-internal.gradle"
//apply plugin: 'application'

dependencies {
implementation enforcedPlatform(project(':tds-platform'))
Expand All @@ -16,6 +17,18 @@ dependencies {
runtimeOnly project(':tds-ugrid')
}

application {
mainClass.set("ucar.nc2.ui.ToolsUI")
//application {
// mainClass.set("ucar.nc2.ui.ToolsUI")
//}

tasks.register('runToolsUI', JavaExec) {
dependsOn 'classes'
mainClass = 'ucar.nc2.ui.ToolsUI'
classpath = sourceSets.main.runtimeClasspath
}

tasks.register('runTdsMonitor', JavaExec) {
dependsOn 'classes'
mainClass = 'thredds.ui.monitor.TdsMonitor'
classpath = sourceSets.main.runtimeClasspath
}

0 comments on commit 495a9a2

Please sign in to comment.