Skip to content

Commit

Permalink
fix: improve routing & UI
Browse files Browse the repository at this point in the history
  • Loading branch information
ythepaut committed Sep 1, 2024
1 parent eff1988 commit 0121936
Show file tree
Hide file tree
Showing 9 changed files with 1,933 additions and 1,937 deletions.
2 changes: 1 addition & 1 deletion .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ APP_DESCRIPTION=Open source image gallery
APP_KEYWORDS=image gallery, image showcase
APP_URL=https://showcase.ythepaut.com

IMAGES_URL=http://localhost:3000/assets/images_test.json
IMAGES_URL=

TIMEZONE=Europe/Paris
DEFAULT_LOCALE=fr
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,19 @@ jobs:
run: cp .env.test .env
- name: Install dependencies
run: npm ci
- name: Get current commit hash
id: vars
run: echo "COMMIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
- name: Build
run: npm run build
env:
IMAGES_URL: https://raw.githubusercontent.com/ythepaut/image-showcase/${{ env.COMMIT_HASH }}/public/assets/images_test.json
- name: Run tests
run: npm test
- name: Run cypress tests
run: npm run e2e:headless
env:
IMAGES_URL: https://raw.githubusercontent.com/ythepaut/image-showcase/${{ env.COMMIT_HASH }}/public/assets/images_test.json
- name: Run lint
run: npm run lint
- name: SonarCloud Scan
Expand Down
Loading

0 comments on commit 0121936

Please sign in to comment.