-
Notifications
You must be signed in to change notification settings - Fork 74
43 lines (43 loc) · 1.27 KB
/
ci-delta-plugins.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Delta Plugins unit tests
on:
pull_request:
paths:
- 'delta/kernel/**'
- 'delta/plugins/**'
- 'delta/rdf/**'
- 'delta/sdk/**'
- 'delta/sourcing-psql/**'
- 'delta/testkit/**'
- 'build.sbt'
- 'project/**'
- '.github/workflows/ci-delta-plugins.yml'
jobs:
run:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
timeout-minutes: 20
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
cache: 'sbt'
check-latest: true
- name: Add hosts to /etc/hosts
run: |
sudo echo "127.0.0.1 other.my-domain.com" | sudo tee -a /etc/hosts
sudo echo "127.0.0.1 bucket.my-domain.com" | sudo tee -a /etc/hosts
sudo echo "127.0.0.1 bucket2.my-domain.com" | sudo tee -a /etc/hosts
sudo echo "127.0.0.1 bucket3.my-domain.com" | sudo tee -a /etc/hosts
- name: Unit tests
run: |
sbt -Dsbt.color=always -Dsbt.supershell=false \
clean \
plugins-unit-tests-with-coverage