forked from Tinder/bazel-diff
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathintegration_external_target.yml
More file actions
47 lines (45 loc) · 1.38 KB
/
integration_external_target.yml
File metadata and controls
47 lines (45 loc) · 1.38 KB
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: Integration External Target
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: "0 */12 * * *"
jobs:
IntegrationExternalTarget:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '11' ]
bazel: ['8.x']
steps:
- name: Setup Java JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
id: java
- uses: actions/checkout@v3
with:
repository: tinder-maxwellelliott/bazel-diff-repro-1
ref: master
fetch-depth: 0
- name: Run External Target Impact test
env:
USE_BAZEL_VERSION: ${{ matrix.bazel }}
BAZEL_DIFF_DISABLE_WORKSPACE: ${{ matrix.bazel == '8.x' && 'true' || 'false' }}
BAZEL_DIFF_FORCE_CHECKOUT: true
run: ./bazel-diff.sh $(pwd) bazel $(git rev-parse HEAD~1) $(git rev-parse HEAD)
- name: Validate Impacted Targets
run: grep -q "//:yo" /tmp/impacted_targets.txt
- name: Upload bazel-diff artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: bazel-diff-artifacts-java-${{ matrix.java }}-bazel-${{ matrix.bazel }}
path: |
/tmp/impacted_targets.txt
/tmp/bazel-diff*.log
/tmp/bazel-diff*.json
if-no-files-found: warn