Skip to content

📝 Added message on #1326

📝 Added message on

📝 Added message on #1326

name: tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 'lts/*', 'current' ]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Create .env file
run: |
touch .env
echo DUMMY_PASSWORD=${{ secrets.DUMMY_PASSWORD }} >> .env
echo DUMMY_EDIT_PASSWORD_WEAK=${{ secrets.DUMMY_EDIT_PASSWORD_WEAK }} >> .env
echo DUMMY_EDIT_PASSWORD_STRONG=${{ secrets.DUMMY_EDIT_PASSWORD_STRONG }} >> .env
echo GOOGLE_CLIENT_ID=${{ secrets.GOOGLE_CLIENT_ID }} >> .env
echo GOOGLE_CLIENT_SECRET=${{ secrets.GOOGLE_CLIENT_SECRET }} >> .env
echo SESSION_SECRET=${{ secrets.SESSION_SECRET }} >> .env
echo CLOUDINARY_KEY=${{ secrets.CLOUDINARY_KEY }} >> .env
echo CLOUDINARY_NAME=${{ secrets.CLOUDINARY_NAME }} >> .env
echo CLOUDINARY_SECRET=${{ secrets.CLOUDINARY_SECRET }} >> .env
- run: npm ci
- run: npm run build --if-present
- run: npm run coverage
env:
CI: true
- name: Collect coverage to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}