-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs: IS-8
- Loading branch information
Showing
6 changed files
with
422 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
ENVIRONMENT=test | ||
|
||
APP_NAME=Image Showcase | ||
APP_DESCRIPTION=Open source image gallery | ||
APP_KEYWORDS=image gallery, image showcase | ||
APP_URL=https://showcase.ythepaut.com/ | ||
|
||
TIMEZONE=Europe/Paris | ||
DEFAULT_LOCALE=fr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- "**" | ||
pull_request: | ||
types: [ opened, reopened ] | ||
|
||
jobs: | ||
test: | ||
name: v${{ matrix.node }} @ ubuntu-latest | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node: | ||
- 18 | ||
- 20 | ||
steps: | ||
- name: Setup | ||
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4 | ||
- name: Use Node.js v${{ matrix.node }} | ||
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- name: Setup .env file | ||
run: cp .env.test .env | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Build | ||
run: npm run build | ||
- name: Run tests | ||
run: npm test | ||
- name: Run cypress tests | ||
run: npm run e2e:headless | ||
- name: Run lint | ||
run: npm run lint | ||
- name: SonarCloud Scan | ||
uses: SonarSource/sonarcloud-github-action@master | ||
env: | ||
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.