-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (40 loc) · 1.1 KB
/
Copy pathci.yml
File metadata and controls
44 lines (40 loc) · 1.1 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
name: CI
on:
push:
branches:
- master
- main
pull_request:
permissions:
contents: read
jobs:
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Install Gitleaks
shell: pwsh
run: |
go install github.com/zricethezav/gitleaks/v8@latest
"$env:USERPROFILE\go\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
& "$env:USERPROFILE\go\bin\gitleaks.exe" version
- name: Run regulation regression tests
shell: pwsh
run: ./scripts/tests/run-regulation-tests.ps1
ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Install Gitleaks
run: |
go install github.com/zricethezav/gitleaks/v8@latest
echo "$HOME/go/bin" >> "$GITHUB_PATH"
"$HOME/go/bin/gitleaks" version
- name: Run regulation regression tests
run: |
chmod +x scripts/*.sh scripts/tests/*.sh
./scripts/tests/run-regulation-tests.sh