-
Notifications
You must be signed in to change notification settings - Fork 66
47 lines (45 loc) · 1.25 KB
/
sbt-integration.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
44
45
46
47
name: sbt-integration
on:
pull_request:
paths:
- '**.scala'
- '**.java'
- '**.sbt'
- '.scalafmt.conf'
- '.github/workflows/sbt-integration.yml'
- 'project/build.properties'
- AIRSPEC_VERSION
push:
branches:
- main
paths:
- '**.scala'
- '**.java'
- '**.sbt'
- '.scalafmt.conf'
- '.github/workflows/sbt-integration.yml'
- 'project/build.properties'
- AIRSPEC_VERSION
jobs:
sbt_airframe:
name: sbt-airframe
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 10000
# Fetch all tags so that sbt-dynver can find the previous release version
- run: git fetch --tags -f
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Get Airframe version
run: echo "AIRFRAME_VERSION=$(./scripts/dynver.sh)" >> $GITHUB_ENV
- name: Check Airframe version
run: echo ${AIRFRAME_VERSION}
- name: Create a snapshot of Airframe
run: ./sbt publishSbtDevLocal
- name: Run sbt-airframe plugin tests
run: AIRFRAME_VERSION=${AIRFRAME_VERSION} ./sbt scripted
working-directory: ./sbt-airframe