Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Maven CI

on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v7

- uses: actions/setup-java@v6
with:
distribution: 'temurin'
java-version: '8'

- name: Install socat
run: sudo apt-get update && sudo apt-get install -y socat

- name: Create Virtual Serial Ports
run: |
nohup sudo socat -d -d pty,link=/dev/ttys001,raw,echo=0 pty,link=/dev/ttys002,raw,echo=0 > socat.log 2>&1 &
echo $! > socat.pid
sleep 3
cat socat.log
sudo chmod 666 /dev/ttys001 /dev/ttys002

- name: Maven Test
run: mvn test
2 changes: 1 addition & 1 deletion .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Create GitHub Release
env:
Expand Down
Loading