Skip to content

Commit

Permalink
Test starting app in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Hilzu committed Jul 22, 2024
1 parent a046979 commit a26dcbe
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,23 @@ jobs:
with:
node-version: ${{ matrix.node-version }}.x
cache: "npm"
- run: npm ci
- run: npm test
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Install package
run: npm install --global .
- name: Create project
run: npx create-ts-node new-project
working-directory: ${{ runner.temp }}
- name: Run build
run: npm run build
working-directory: ${{ runner.temp }}/new-project
- name: Start app
run: npm start &
working-directory: ${{ runner.temp }}/new-project
- name: Test app
run: curl --fail --silent --show-error --max-time 10 localhost:3000

create:
name: Create
Expand Down

0 comments on commit a26dcbe

Please sign in to comment.