Replace AWT with SWT keyboard in Grid Test #1345
Workflow file for this run
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
name: Automated tests | |
on: push | |
jobs: | |
test_jdk: | |
name: OpenJDK Linux + SonarCloud code analysis | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Update packages | |
run: sudo apt-get update | |
- name: Install metacity window manager for background tests | |
run: sudo apt-get install metacity | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
# Otherwise the new code can't be determined or code coverage is less informing | |
fetch-depth: 0 | |
- name: Set up Maven | |
uses: stCarolas/setup-maven@v5 | |
with: | |
maven-version: 3.8.7 | |
- name: Cache local Maven repository | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven | |
- name: Set JAVA_HOME to OpenJDK 17 | |
run: echo JAVA_HOME=$JAVA_HOME_17_X64 >> $GITHUB_ENV | |
- name: Run Maven Tests with enabled code coverage and upload results to SonarCloud | |
run: ./releng/sh/metacity-run.sh mvn clean verify sonar:sonar -Pcoverage -Dsonar.projectKey=hexatomic_hexatomic -Dsonar.organization=hexatomic -Dsonar.host.url=https://sonarcloud.io -Dsonar.token=$SONAR_TOKEN | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
LANG: en_US.UTF-8 | |
test_macos: | |
name: OpenJDK macOS | |
runs-on: macos-14 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Set up Maven | |
uses: stCarolas/setup-maven@v5 | |
with: | |
maven-version: 3.8.7 | |
- name: Cache local Maven repository | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven | |
- name: Run Maven install (includes tests) | |
run: mvn -Djava.awt.headless=false verify | |
env: | |
LANG: en_US.UTF-8 | |
test_docs: | |
name: Test documentation | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Download and install mdBook | |
run: curl -L -o mdbook.tar.gz https://github.com/rust-lang-nursery/mdBook/releases/download/v$MDBOOK_VERSION/mdbook-v$MDBOOK_VERSION-x86_64-unknown-linux-gnu.tar.gz && tar -C $HOME/.cargo/bin/ -zvxf mdbook.tar.gz | |
env: | |
MDBOOK_VERSION: 0.3.1 | |
- run: mdbook test docs/user/ | |
- run: mdbook test docs/dev/ |