Skip to content

Commit d0a57ac

Browse files
authored
FF-991 - Optimize package manager setup (#17)
1 parent 849ffdd commit d0a57ac

File tree

17 files changed

+2621
-528
lines changed

17 files changed

+2621
-528
lines changed
Lines changed: 14 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,27 @@
1-
name: Integration Test
1+
name: "Integration Tests"
22
on:
33
push:
44
branches: [main]
55
pull_request:
66
branches: [main]
77

8-
permissions:
9-
contents: read
10-
id-token: write
11-
actions: read
12-
138
jobs:
14-
integration-test:
15-
runs-on: ubuntu-latest
9+
integration-tests:
10+
strategy:
11+
matrix:
12+
os: [ubuntu-latest, macos-latest]
13+
runs-on: ${{ matrix.os }}
1614
steps:
17-
- name: Checkout repository
15+
- name: Checkout code
1816
uses: actions/checkout@v4
1917

20-
- name: Install twine
21-
run: pip install twine
22-
23-
- name: Run Fly action
24-
id: run-action
25-
uses: ./
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v5
2620
with:
27-
url: "https://froggen.jfrog.io"
28-
ignore: helm, dotnet
29-
30-
- name: Mock failing step (for testing job status detection)
31-
run: |
32-
echo "This step will intentionally fail to test our post-action logic"
33-
echo "Our post-action should detect this failure and report 'failure' status"
34-
exit 1
21+
node-version: '24'
3522

36-
- name: Install setuptools with verbose output
37-
run: |
38-
pip cache purge
39-
echo "Attempting to install setuptools with verbose logging..."
40-
pip install --force-reinstall setuptools --no-cache-dir -vvv
23+
- name: Install dependencies
24+
run: npm i
4125

42-
- name: Create and Upload Python Package with Twine
43-
run: |
44-
set -e
45-
mkdir testpkg && cd testpkg
46-
echo "from setuptools import setup; setup(name='testpkg', version='0.0.1', packages=[''])" > setup.py
47-
touch __init__.py
48-
python setup.py sdist bdist_wheel
49-
twine upload dist/*
26+
- name: Run fly-client integration tests
27+
run: npx jest src/integration-tests/

.github/workflows/unit-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
- name: Lint
2424
run: npm run lint
2525

26-
- name: Test
27-
run: npm test
26+
- name: Run unit tests
27+
run: npm test -- --testPathIgnorePatterns=integration-tests --testPathIgnorePatterns=dist --testPathIgnorePatterns=lib
2828

2929
- name: Build
30-
run: npm run build
30+
run: npm run build

bin/fly-darwin-arm64

-105 KB
Binary file not shown.

bin/fly-darwin-x64

136 KB
Binary file not shown.

bin/fly-linux-arm64

-64 KB
Binary file not shown.

bin/fly-linux-x64

168 KB
Binary file not shown.

0 commit comments

Comments
 (0)