-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1 KB
/
health-check.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
name: Check code health
on:
push:
branches: [master, main]
jobs:
Scan:
name: Secrets Scan
runs-on: ubuntu-latest
steps:
- name: Check out the repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Scan the repository to find hardcoded secrets
uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
Test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
include:
- os: macOS-latest
shell: bash
- os: ubuntu-latest
shell: bash
steps:
- name: Install Homebrew
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
env:
NONINTERACTIVE: 1
- name: Run install script
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/YasminTeles/dotfiles/HEAD/install.sh)"
env:
CI: true