Skip to content

Commit f82ee24

Browse files
authored
Merge pull request #1082 from OpenFn/integration
Add Integration Tests for the project-integration-test repo
2 parents 68f6538 + 7a72422 commit f82ee24

2 files changed

Lines changed: 40 additions & 2 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Project Integration
2+
3+
# This workflow runs on every release branch,
4+
# when a PR is labeled with 'run_project_tests',
5+
on:
6+
push:
7+
branches:
8+
- 'release/**'
9+
pull_request:
10+
types: [labeled]
11+
12+
jobs:
13+
cli_stories:
14+
runs-on: ubuntu-latest
15+
if: github.event_name != 'pull_request' || github.event.label.name == 'run_project_tests'
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Checkout Integration Test Repo
19+
uses: actions/checkout@v3
20+
with:
21+
repository: openfn/project-integration-tests
22+
path: resources/repo
23+
- uses: actions/setup-node@v3
24+
with:
25+
node-version: '22.12'
26+
- uses: pnpm/action-setup@v4
27+
- run: pnpm install
28+
- run: pnpm install:openfnx
29+
30+
- uses: oven-sh/setup-bun@v2
31+
- run: bun install
32+
working-directory: resources/repo
33+
34+
- run: pnpm stories:cli
35+
env:
36+
OPENFN_RUNNER_ARGS: cmd:openfnx
37+
working-directory: resources/repo

packages/cli/src/checkout/command.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import { ensure, build } from '../util/command-builders';
44
import * as o from '../options';
55

66
export type CheckoutOptions = Required<
7-
Pick<Opts, 'command' | 'projectName' | 'projectPath' | 'log'>
8-
>;
7+
Pick<Opts, 'command' | 'projectName' | 'projectPath'>
8+
> &
9+
Pick<Opts, 'log'>;
910

1011
const options = [o.projectName, o.projectPath, o.log];
1112

0 commit comments

Comments
 (0)