-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add GitHub Actions Workflow Remove Azure & Travis CI Update README badge Upload test results report --------- Co-authored-by: Austin Shalit <austinshalit@gmail.com>
- Loading branch information
1 parent
35280ce
commit 95b9c92
Showing
5 changed files
with
121 additions
and
139 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,119 @@ | ||
name: CI | ||
|
||
on: [pull_request, push] | ||
|
||
jobs: | ||
test-docker: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- container: wpilib/roborio-cross-ubuntu:2024-22.04 | ||
artifact-name: Linux | ||
name: "Test - ${{ matrix.artifact-name }}" | ||
runs-on: ubuntu-latest | ||
container: ${{ matrix.container }} | ||
env: | ||
DISPLAY: ':10' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: gradle/actions/wrapper-validation@v3 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
distribution: 'temurin' | ||
- name: Install and start xvfb | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y xvfb | ||
Xvfb $DISPLAY & | ||
- name: Check | ||
run: ./gradlew check -PbuildServer | ||
- name: ${{ matrix.artifact-name }} Test Results | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
if: always() | ||
with: | ||
files: | | ||
build/test-results/test/TEST*.xml | ||
- name: ${{ matrix.artifact-name }} Upload Test Results | ||
uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: ${{ matrix.artifact-name }}TestReport | ||
path: | | ||
build/reports/ | ||
test-host: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: windows-2022 | ||
artifact-name: Win64 | ||
architecture: x64 | ||
- os: macos-12 | ||
artifact-name: macOS | ||
architecture: x64 | ||
name: "Test - ${{ matrix.artifact-name }}" | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: gradle/actions/wrapper-validation@v3 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
distribution: 'temurin' | ||
architecture: ${{ matrix.architecture }} | ||
- name: Check | ||
run: ./gradlew check -PbuildServer | ||
- name: ${{ matrix.artifact-name }} Upload Test Results | ||
uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: ${{ matrix.artifact-name }}TestReport | ||
path: | | ||
build/reports/ | ||
publish: | ||
name: Publish | ||
needs: [test-docker, test-host] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
distribution: 'temurin' | ||
- name: Publish | ||
if: | | ||
!startsWith(github.ref, 'refs/tags/v') && | ||
github.ref != 'refs/heads/master' | ||
run: ./gradlew publish -PbuildServer | ||
- name: Publish (Master) | ||
if: | | ||
github.repository_owner == 'wpilibsuite' && | ||
github.ref == 'refs/heads/master' | ||
run: ./gradlew publish -PbuildServer | ||
env: | ||
RUN_AZURE_ARTIFACTORY_RELEASE: 'TRUE' | ||
ARTIFACTORY_PUBLISH_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }} | ||
ARTIFACTORY_PUBLISH_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }} | ||
- name: Publish (Release) | ||
if: | | ||
github.repository_owner == 'wpilibsuite' && | ||
startsWith(github.ref, 'refs/tags/v') | ||
run: ./gradlew publish -PbuildServer -PreleaseMode | ||
env: | ||
RUN_AZURE_ARTIFACTORY_RELEASE: 'TRUE' | ||
ARTIFACTORY_PUBLISH_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }} | ||
ARTIFACTORY_PUBLISH_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }} | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: RobotBuilder | ||
path: build/libs/RobotBuilder-all.jar |
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
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