Skip to content

Commit 4f9e04b

Browse files
authored
Create mac_smoke_test.yml
1 parent bf36b8f commit 4f9e04b

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: macos-smoke
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
smoke:
9+
permissions:
10+
contents: read
11+
name: smoke-${{ matrix.runner }}
12+
runs-on: ${{ matrix.runner }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
runner: [macos-13, macos-14]
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Install Ferret
23+
shell: bash
24+
run: |
25+
set -euo pipefail
26+
chmod +x installers/install.sh
27+
export FERRET_INSTALL_DIR="$RUNNER_TEMP/ferret"
28+
installers/install.sh
29+
echo "$FERRET_INSTALL_DIR/core/bin" >> "$GITHUB_PATH"
30+
31+
- name: Verify Ferret on PATH
32+
shell: bash
33+
run: |
34+
set -euo pipefail
35+
which ferret
36+
ferret --version
37+
38+
- name: Initialize and run sample project
39+
shell: bash
40+
run: |
41+
set -euo pipefail
42+
export FERRET_INSTALL_DIR="$RUNNER_TEMP/ferret"
43+
export PATH="$FERRET_INSTALL_DIR/toolchain/bin:$FERRET_INSTALL_DIR/core/bin:$PATH"
44+
WORKDIR="$RUNNER_TEMP/ferret-smoke"
45+
rm -rf "$WORKDIR"
46+
mkdir -p "$WORKDIR"
47+
cd "$WORKDIR"
48+
49+
ferret init smokeproject <<'EOF'
50+
51+
52+
EOF
53+
test -f fer.ret
54+
ferret run

0 commit comments

Comments
 (0)