Create npm-publish-github-packages.yml #2
Workflow file for this run
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
name: Tests | |
on: | |
push: | |
branches: [canary] | |
pull_request: | |
branches: [canary] | |
jobs: | |
test: | |
name: 'Test all' | |
runs-on: ubuntu-latest | |
container: | |
image: mcr.microsoft.com/playwright:v1.40.0-jammy | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Install dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Lint | |
run: npm run lint | |
- name: Run unit tests | |
run: npm test | |
- name: Build Next.js app and run tests | |
run: | | |
npm run start -w backend & | |
npm run start -w @neshca/server & | |
npm run build:app | |
npm run e2e |