Skip to content

Merge branch 'fix-feature-user-registration' of https://github.com/at… #109

Merge branch 'fix-feature-user-registration' of https://github.com/at…

Merge branch 'fix-feature-user-registration' of https://github.com/at… #109

Workflow file for this run

name: knights-ecomm-be CI
on: [push, pull_request]
env:
TEST_DB_HOST: ${{secrets.TEST_DB_HOST}}
TEST_DB_PORT: ${{secrets.TEST_DB_PORT}}
TEST_DB_USER: ${{secrets.TEST_DB_USER}}
TEST_DB_PASS: ${{secrets.TEST_DB_PASS}}
TEST_DB_NAME: ${{secrets.TEST_DB_NAME}}
HOST: ${{env.TEST_DB_HOST}}

Check failure on line 11 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / knights-ecomm-be CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 11, Col: 9): Unrecognized named-value: 'env'. Located at position 1 within expression: env.TEST_DB_HOST .github/workflows/ci.yml (Line: 12, Col: 15): Unrecognized named-value: 'env'. Located at position 1 within expression: env.TEST_DB_USER
AUTH_EMAIL: ${{env.TEST_DB_USER}}
AUTH_PASSWORD: ${{env.TEST_DB_PASS}}
jobs:
build-lint-test-coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install dependencies
run: npm install
- name: Run ESLint and Prettier
run: npm run lint
- name: Build project
run: npm run build --if-present
- name: Run tests
run: npm test
- name: Upload coverage report to Coveralls
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}