mbien commented on code in PR #5567:
URL: https://github.com/apache/netbeans/pull/5567#discussion_r1125738555
##########
.github/workflows/main.yml:
##########
@@ -1834,6 +1837,50 @@ jobs:
paths: "./*/*/build/test/*/results/TEST-*.xml"
+ rust-test:
+ name: Rust on Linux/JDK ${{ matrix.java }}
+ # equals env.test_rust == 'true'
+ if: ${{ contains(github.event.pull_request.labels.*.name, 'Rust') ||
contains(github.event.pull_request.labels.*.name, 'ci:all-tests') ||
github.event_name != 'pull_request' }}
+ needs: base-build
+ runs-on: ubuntu-latest
+ timeout-minutes: 60
+ strategy:
+ matrix:
+ java: [ '11' ]
+ steps:
+
+ - name: Set up JDK ${{ matrix.java }}
+ uses: actions/setup-java@v3
+ with:
+ java-version: ${{ matrix.java }}
+ distribution: ${{ env.default_java_distribution }}
+
+ - name: Setup Xvfb
+ run: |
+ echo "DISPLAY=:99.0" >> $GITHUB_ENV
+ Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
+
+ - name: Download Build
+ uses: actions/download-artifact@v3
+ with:
+ name: build
+
+ - name: Extract
+ run: tar --zstd -xf build.tar.zst
+
+ - name: rust/rust.cargo
+ run: ant $OPTS -f rust/rust.cargo test
+
+ - name: rust/rust.grammar
+ run: ant $OPTS -f rust/rust.grammar test
Review Comment:
btw this is only testing those two projects atm since the other projects
don't have tests. Once there are tests in more projects, they must be added
like the two steps marked above.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists