Skip to content

Commit

Permalink
use changed-files
Browse files Browse the repository at this point in the history
  • Loading branch information
wpears committed Jun 12, 2024
1 parent 3818a24 commit 5bfc1a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Node
uses: actions/setup-node@v4
Expand All @@ -60,10 +58,16 @@ jobs:
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements/local.txt
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44.5.2

- name: Set up initial data
run: ./refresh-data.sh test.sql.gz

- name: Prepare config
env:
CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: ./test/cypress/run-specs.sh

- name: Run Cypress
Expand Down
2 changes: 1 addition & 1 deletion test/cypress/run-specs.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
git --no-pager diff --name-only origin/main \
echo -n "${CHANGED_FILES:-$(git --no-pager diff --name-only origin/main)}" \
| node "$(git rev-parse --show-toplevel)/test/cypress/spec-map.js"

0 comments on commit 5bfc1a7

Please sign in to comment.