-
Notifications
You must be signed in to change notification settings - Fork 204
45 lines (39 loc) · 1.27 KB
/
test_gap_analysis.yaml
File metadata and controls
45 lines (39 loc) · 1.27 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
name: FNT Gap Analysis
on:
pull_request:
# No paths filter for testing triggers.
permissions: {}
jobs:
gap_analysis_test:
runs-on: ubuntu-latest
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
permissions:
contents: read
pull-requests: read
steps:
- name: Show skip message
if: ${{ env.GEMINI_API_KEY == '' }}
run: echo "No access to Gemini, skipping test."
- name: Checkout code
if: ${{ env.GEMINI_API_KEY != '' }}
uses: actions/checkout@v4
with:
fetch-depth: 0 # Needed for changed-files action to diff against base branch
- name: Set up Go
if: ${{ env.GEMINI_API_KEY != '' }}
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Get changed files
if: ${{ env.GEMINI_API_KEY != '' }}
id: changed-files-pr
uses: tj-actions/changed-files@v46
with:
separator: ','
- name: Run Gap Analysis Script
if: ${{ env.GEMINI_API_KEY != '' }}
run: |
echo "--- Building and Running FNT Gap Analysis ---"
go build -o gap-analyzer tools/gap-analyzer/read_fnttests.go
./gap-analyzer --changed-files="${{ steps.changed-files-pr.outputs.all_changed_files }}"