Skip to content

Commit

Permalink
Update workflow to use tests repo
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarciabriseno committed Jan 28, 2025
1 parent 9206151 commit 4e009d4
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,19 @@ jobs:
with:
submodules: true
path: 'helioviewer.org'

- name: Checkout the latest Helioviewer API
uses: actions/checkout@v4
with:
repository: 'Helioviewer-Project/api'
path: 'api'

- name: Checkout test code
uses: actions/checkout@v4
with:
repository: 'Helioviewer-Project/helioviewer.org-tests'
path: 'tests'

# See https://github.com/actions/checkout?tab=readme-ov-file#fetch-only-a-single-file
- name: Checkout the Dockerfile for local Helioviewer
uses: actions/checkout@v4
Expand All @@ -88,32 +96,40 @@ jobs:
run: |
echo $(pwd)
echo $(ls)
- name: Setup environment file
run: mv compose/.env.example .env

- name: Start local Helioviewer environment
id: docker
run: |
mv compose/compose.yaml .
docker compose up -d --wait
- name: Show docker compose logs
if: always()
run: |
docker compose logs
cat compose.yaml
- name: Fix cache directory permissions
if: always()
run: |
docker compose exec web chown 33:33 cache
- uses: actions/setup-node@v4
with:
node-version: lts/*

- name: Install Playwright Browsers
run: |
cd helioviewer.org
cd tests
npm ci
npx playwright install --with-deps
- name: Run Playwright tests
run: |
cd helioviewer.org
cd tests
npx playwright test --shard=${{matrix.shardIndex}}/${{matrix.shardTotal}}
- uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 4e009d4

Please sign in to comment.