Skip to content

fixup! chore: add test job at CI #45

fixup! chore: add test job at CI

fixup! chore: add test job at CI #45

Workflow file for this run

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 }}
Tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
include:
- os: macOS-latest
shell: bash
- os: ubuntu-latest
shell: bash
runs-on: ${{ matrix.os }}
defaults:
run:
shell: ${{ matrix.shell }}
steps:
- name: Clean up macOS
if: runner.os == 'macOS'
run: |
sudo rm -rf /Applications/Xcode.app \
/Library/Developer/CommandLineTools
sudo xcode-select --reset
- name: Clean up linuxOS
if: runner.os == 'ubuntu'
run: sudo apt-get install build-essential
- name: Install Homebrew
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
env:
NONINTERACTIVE: 1
- name: Set up Homebrew
if: runner.os == 'ubuntu'
run: |
(echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /home/runner/.bashrc
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
- name: Run install script
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/YasminTeles/dotfiles/HEAD/install.sh)"
env:
CI: true