Skip to content

Commit 9464447

Browse files
committed
Move to pr-smoke-test because we need a live provider
1 parent 82862f4 commit 9464447

File tree

2 files changed

+39
-46
lines changed

2 files changed

+39
-46
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2424

2525
- name: Check for file changes
26-
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3
26+
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # pin@v3
2727
id: filter
2828
with:
2929
filters: |
@@ -41,7 +41,7 @@ jobs:
4141
- name: Checkout Code
4242
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
4343

44-
- uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1
44+
- uses: actions-rust-lang/setup-rust-toolchain@v1
4545

4646
- name: Run cargo fmt
4747
run: cargo fmt --check
@@ -55,15 +55,15 @@ jobs:
5555
- name: Checkout Code
5656
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
5757

58-
- uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1
58+
- uses: actions-rust-lang/setup-rust-toolchain@v1
5959

6060
- name: Install Dependencies
6161
run: |
6262
sudo apt update -y
6363
sudo apt install -y libdbus-1-dev gnome-keyring libxcb1-dev
6464
6565
- name: Cache Cargo artifacts
66-
uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2
66+
uses: Swatinem/rust-cache@v2
6767

6868
- name: Build and Test
6969
run: |
@@ -75,16 +75,6 @@ jobs:
7575
env:
7676
RUST_MIN_STACK: 8388608
7777

78-
- name: Build goosed binary
79-
run: cargo build --package goosed
80-
81-
- name: Upload goosed binary
82-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
83-
with:
84-
name: goosed-linux
85-
path: target/debug/goosed
86-
retention-days: 1
87-
8878

8979
rust-lint:
9080
name: Lint Rust Code
@@ -94,9 +84,9 @@ jobs:
9484
steps:
9585
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
9686

97-
- uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1
87+
- uses: actions-rust-lang/setup-rust-toolchain@v1
9888

99-
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2
89+
- uses: Swatinem/rust-cache@v2
10090

10191
- name: Lint
10292
run: |
@@ -119,15 +109,15 @@ jobs:
119109
- name: Checkout Code
120110
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
121111

122-
- uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1
112+
- uses: actions-rust-lang/setup-rust-toolchain@v1
123113

124114
- name: Install Dependencies
125115
run: |
126116
sudo apt update -y
127117
sudo apt install -y libdbus-1-dev libxcb1-dev
128118
129119
- name: Cache Cargo artifacts
130-
uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2
120+
uses: Swatinem/rust-cache@v2
131121

132122
- name: Install Node.js Dependencies for OpenAPI Check
133123
run: source ../../bin/activate-hermit && npm ci
@@ -172,31 +162,3 @@ jobs:
172162
- name: Run Tests
173163
run: source ../../bin/activate-hermit && npm run test:run
174164
working-directory: ui/desktop
175-
176-
desktop-integration:
177-
name: Desktop Integration Tests
178-
runs-on: ubuntu-latest
179-
needs: [changes, rust-build-and-test]
180-
if: needs.changes.outputs.code == 'true' || github.event_name != 'pull_request'
181-
steps:
182-
- name: Checkout Code
183-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
184-
185-
- name: Download goosed binary
186-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
187-
with:
188-
name: goosed-linux
189-
path: target/debug
190-
191-
- name: Make goosed executable
192-
run: chmod +x target/debug/goosed
193-
194-
- name: Install Node.js Dependencies
195-
run: source ../../bin/activate-hermit && npm ci
196-
working-directory: ui/desktop
197-
198-
- name: Run Integration Tests
199-
env:
200-
GOOSED_BINARY: ../../target/debug/goosed
201-
run: source ../../bin/activate-hermit && npm run test:integration
202-
working-directory: ui/desktop

.github/workflows/pr-smoke-test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,3 +239,34 @@ jobs:
239239
mkdir -p $HOME/.local/share/goose/sessions
240240
mkdir -p $HOME/.config/goose
241241
bash scripts/test_compaction.sh
242+
243+
goosed-integration-tests:
244+
name: goose server HTTP integration tests
245+
runs-on: ubuntu-latest
246+
needs: build-binary
247+
steps:
248+
- name: Checkout Code
249+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
250+
with:
251+
ref: ${{ github.event.inputs.branch || github.ref }}
252+
253+
- name: Download Binary
254+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
255+
with:
256+
name: goose-binary
257+
path: target/debug
258+
259+
- name: Make Binary Executable
260+
run: chmod +x target/debug/goose
261+
262+
- name: Install Node.js Dependencies
263+
run: source ../../bin/activate-hermit && npm ci
264+
working-directory: ui/desktop
265+
266+
- name: Run Integration Tests
267+
env:
268+
GOOSED_BINARY: ../../target/debug/goosed
269+
GOOSE_PROVIDER: anthropic
270+
GOOSE_MODEL: claude-sonnet-4-5-20250929
271+
run: source ../../bin/activate-hermit && npm run test:integration
272+
working-directory: ui/desktop

0 commit comments

Comments
 (0)