Skip to content

Commit

Permalink
build: update build steps for test
Browse files Browse the repository at this point in the history
  • Loading branch information
blaise-favor committed May 15, 2024
1 parent 3eea5fa commit 049ab58
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 412 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build-branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
- run: find . -name 'package-lock.json' -execdir npm ci \;
- run: npm run dev:test &
- run: npx wait-on tcp:9595
- run: npm run test
- name: Install dependencies
run: find . -name 'package-lock.json' -execdir npm ci \;
- name: Run server
run: npm start &
- name: Wait for server to start
run: npx wait-on tcp:8585
- name: Run tests
run: npm run test
build-latest:
name: Build branch
runs-on: ubuntu-latest
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/build-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- run: npm test
- name: Install dependencies
run: find . -name 'package-lock.json' -execdir npm ci \;
- name: Run server
run: npm start &
- name: Wait for server to start
run: npx wait-on tcp:8585
- name: Run tests
run: npm run test
build-latest:
name: Build latest
runs-on: ubuntu-latest
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,14 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- run: npm test
- name: Install dependencies
run: find . -name 'package-lock.json' -execdir npm ci \;
- name: Run server
run: npm start &
- name: Wait for server to start
run: npx wait-on tcp:8585
- name: Run tests
run: npm run test
build:
name: Build with google cloud
runs-on: ubuntu-latest
Expand Down
Loading

0 comments on commit 049ab58

Please sign in to comment.