-
Notifications
You must be signed in to change notification settings - Fork 13
52 lines (42 loc) · 1.65 KB
/
smoke-test-ffi.yml
File metadata and controls
52 lines (42 loc) · 1.65 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
48
49
50
51
52
name: 🔥 Smoke Tests for FFI
on: [push]
permissions:
contents: read
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# macos-14 is ARM-based
# macos-14-large is x86-based
# ubuntu-latest (x86) is not included because the full test suite runs on it
os: [windows-latest, macos-14, macos-14-large, ubuntu-22.04-arm]
# Allows all jobs to run even if one fails
continue-on-error: true
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Display system info
run: |
python -c "import platform; print(f'Machine architecture: {platform.machine()}')"
python -c "import platform; print(f'OS: {platform.system()}')"
- name: Install MySQL
if: runner.os == 'macOS'
run: brew install mysql
- name: Install MySQL
if: runner.os == 'Linux'
run: sudo apt-get install libmysqlclient-dev
- name: Setup safe-chain (Unix)
if: runner.os != 'Windows'
run: curl -fsSL https://github.com/AikidoSec/safe-chain/releases/latest/download/install-safe-chain.sh | sh -s -- --ci
- name: Setup safe-chain (Windows)
if: runner.os == 'Windows'
run: iex "& { $(iwr 'https://github.com/AikidoSec/safe-chain/releases/latest/download/install-safe-chain.ps1' -UseBasicParsing) } -ci"
- name: Install dependencies
run: make install && cp -r .cache/binaries/* aikido_zen/libs
- name: Run tests
run: poetry run pytest aikido_zen/vulnerabilities/sql_injection/init_test.py