-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.05 KB
/
test.yml
File metadata and controls
47 lines (38 loc) · 1.05 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
name: Tests
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
test:
name: OSA Snippets Tests
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
brew install bats-core
echo "✓ bats version: $(bats --version)"
echo "✓ zsh version: $(zsh --version)"
- name: Run test suite
run: |
echo "Running OSA Snippets test suite..."
bats tests/*.bats
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '22'
- name: Enable Corepack
run: corepack enable
- name: Install JS dependencies
run: |
echo "Installing JavaScript dependencies..."
cd js
yarn install --immutable
- name: Run vitest tests
run: |
echo "Running vitest test suite..."
cd js
yarn test:coverage