Skip to content

Commit 0fe4b23

Browse files
authored
[Build] [Unity] delta-unity project GitHub action test workflow (delta-io#4857)
## 🥞 Stacked PR Use this [link](https://github.com/delta-io/delta/pull/4857/files) to review incremental changes. - [**stack/unity_github_workflow_tests**](delta-io#4857) [[Files changed](https://github.com/delta-io/delta/pull/4857/files)] --------- #### Which Delta project/connector is this regarding? <!-- Please add the component selected below to the beginning of the pull request title For example: [Spark] Title of my pull request --> - [ ] Spark - [ ] Standalone - [ ] Flink - [ ] Kernel - [X] Other (Unity) ## Description `delta-unity` project GitHub action test workflow ## How was this patch tested? CI Run ## Does this PR introduce _any_ user-facing changes? No.
1 parent c23746b commit 0fe4b23

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/unity_test.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "Delta Unity"
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
name: "Delta Unity Tests"
6+
runs-on: ubuntu-24.04
7+
env:
8+
SCALA_VERSION: 2.12.18
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: technote-space/get-diff-action@v4
12+
id: git-diff
13+
with:
14+
PATTERNS: |
15+
build.sbt
16+
version.sbt
17+
unity/**
18+
kernel/**
19+
storage/**
20+
.github/workflows/unity_test.yaml
21+
- name: install java
22+
uses: actions/setup-java@v3
23+
with:
24+
distribution: "zulu"
25+
java-version: "8"
26+
if: steps.git-diff.outputs.diff
27+
- name: Run Unity tests with coverage
28+
run: |
29+
./build/sbt "++ ${{ env.SCALA_VERSION }}" clean coverage unity/test coverageAggregate coverageOff -v
30+
if: steps.git-diff.outputs.diff

0 commit comments

Comments
 (0)