Skip to content

Commit 531afaf

Browse files
Merge pull request #6 from IntegralPilot/ci
Add CI testing support on pushes and PRs to main
2 parents 779cb40 + 4bfbb01 commit 531afaf

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v3
16+
17+
- name: Set up Rust (nightly)
18+
uses: actions-rs/toolchain@v1
19+
with:
20+
toolchain: nightly
21+
override: true
22+
components: rustc, rust-src, cargo
23+
24+
- name: Set up Java
25+
uses: actions/setup-java@v3
26+
with:
27+
distribution: 'temurin'
28+
java-version: '21'
29+
30+
- name: Set up Python
31+
uses: actions/setup-python@v4
32+
with:
33+
python-version: '3.x'
34+
35+
- name: Set up Gradle
36+
uses: gradle/gradle-build-action@v2
37+
38+
- name: Install dependencies
39+
run: |
40+
sudo apt-get update
41+
sudo apt-get install -y make
42+
43+
- name: Build all components
44+
run: make all
45+
46+
- name: Run integration tests
47+
run: python3 Tester.py

0 commit comments

Comments
 (0)