Skip to content

Commit

Permalink
workflow fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Schimpf committed Mar 3, 2024
1 parent e184527 commit 46f550d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/frontend-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 'latest'
- run: npm --prefix frontend install .
- run: npm --prefix frontend run lint
- run: npm install .
working-directory: frontend
- run: npm run lint
working-directory: frontend
6 changes: 4 additions & 2 deletions .github/workflows/sdk-javascript-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 'latest'
- run: npm --prefix sdk/javascript install .
- run: npm --prefix sdk/javascript run lint
- run: npm install .
working-directory: sdk/javascript
- run: npm run lint
working-directory: sdk/javascript
2 changes: 1 addition & 1 deletion admin/tests/api/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ PYTHONPATH=./admin MYSQL_ECHO=0 python -m pytest --disable-warnings --cov=./app

# Reset DBs
docker exec -i mysql bash /docker-entrypoint-initdb.d/init.sh
redis-cli --cluster call --cluster-only-masters 127.0.0.1:7000 FLUSHALL
docker exec -i redis bash redis-cli --cluster call 127.0.0.1:7000 FLUSHALL
10 changes: 5 additions & 5 deletions flags/tests/api/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ done
sleep 5

# Add up some redis data
redis-cli -c --cluster call --cluster-only-masters 127.0.0.1:7000 FLUSHALL
redis-cli -c --cluster call --cluster-only-masters 127.0.0.1:7000 HSET "context-fields:{1}" "str" "1"
redis-cli -c --cluster call --cluster-only-masters 127.0.0.1:7000 HSET "feature-flags:{1}" "FLAG_1" '[[{"context_key": "str", "operator": 1, "value": "abc"}]]'
redis-cli -c --cluster call --cluster-only-masters 127.0.0.1:7000 SADD "private-keys:{1}" "gAAAAABlyKFJOkSChKo00njI-gPRHdR96V0xcykwHeim2qTJ_IYaQ00kyaDRIXv6r-Rzg2Yi1eXI5ZeCskrcq1WGow51djuyCEhEfcWLaD8amAtIW5EKTxj88Aa5f2yqlUlYryiM3lTJ-5qipYOM-6aWrzp9bC3iLFJ7svGpifl6AtpwnYZuod0="
docker exec -i redis bash redis-cli -c --cluster call 127.0.0.1:7000 FLUSHALL
docker exec -i redis bash redis-cli -c --cluster call 127.0.0.1:7000 HSET "context-fields:{1}" "str" "1"
docker exec -i redis bash redis-cli -c --cluster call 127.0.0.1:7000 HSET "feature-flags:{1}" "FLAG_1" '[[{"context_key": "str", "operator": 1, "value": "abc"}]]'
docker exec -i redis bash redis-cli -c --cluster call 127.0.0.1:7000 SADD "private-keys:{1}" "gAAAAABlyKFJOkSChKo00njI-gPRHdR96V0xcykwHeim2qTJ_IYaQ00kyaDRIXv6r-Rzg2Yi1eXI5ZeCskrcq1WGow51djuyCEhEfcWLaD8amAtIW5EKTxj88Aa5f2yqlUlYryiM3lTJ-5qipYOM-6aWrzp9bC3iLFJ7svGpifl6AtpwnYZuod0="

PYTHONPATH=./flags MYSQL_ECHO=0 python -m pytest --disable-warnings --cov=./app --cov-fail-under=50 --no-cov-on-fail ./tests/api

redis-cli -c --cluster call --cluster-only-masters 127.0.0.1:7000 FLUSHALL
docker exec -i redis bash redis-cli -c --cluster call 127.0.0.1:7000 FLUSHALL
1 change: 1 addition & 0 deletions sdk/python/requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
build==1.*
debugpy==1.*
hatchling==1.*
mypy==1.*
ruff==0.*
types-requests==2.*
twine==5.*

0 comments on commit 46f550d

Please sign in to comment.