forked from jmandel/fhir-js-client
-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c541d11
commit 7a30f27
Showing
3 changed files
with
35 additions
and
28 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,36 @@ | ||
|
||
name: Browser Tests | ||
|
||
on: | ||
push: | ||
branches: [ "*" ] | ||
pull_request: | ||
branches: [ "*" ] | ||
workflow_dispatch: | ||
branches: [ "*" ] | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
# Checkout the repository | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js 18.x | ||
|
||
# Setup Node.js environment (use 18.x and enable caching) | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
cache: npm | ||
node-version: 20.x | ||
cache: 'npm' | ||
|
||
- run: npm ci --legacy-peer-deps | ||
# Install dependencies | ||
- name: Install dependencies | ||
run: npm ci --legacy-peer-deps | ||
|
||
- run: npm run build --if-present | ||
# Build the project (if there is a build script) | ||
- name: Build the project | ||
run: npm run build --if-present | ||
|
||
- run: npm run nightwatch | ||
# Run Nightwatch tests | ||
- name: Run Nightwatch tests | ||
run: npm run test:e2e | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,45 @@ | ||
|
||
name: NodeJS Tests | ||
|
||
on: | ||
push: | ||
branches: [ "*" ] | ||
pull_request: | ||
branches: [ "*" ] | ||
workflow_dispatch: | ||
branches: [ "*" ] | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [ 18.x, 20.x ] | ||
|
||
steps: | ||
|
||
# Checkout the repository | ||
- uses: actions/checkout@v3 | ||
|
||
|
||
# Setup Node.js environment (use matrix for different versions) | ||
- name: Setup Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: npm | ||
cache: 'npm' | ||
|
||
- run: npm ci --legacy-peer-deps | ||
# Install dependencies | ||
- name: Install dependencies | ||
run: npm ci --legacy-peer-deps | ||
|
||
- run: npm run build --if-present | ||
# Build the project (if a build script exists) | ||
- name: Build the project | ||
run: npm run build --if-present | ||
|
||
- run: npm test | ||
# Run tests | ||
- name: Run tests | ||
run: npm run cover:unit | ||
|
||
# Upload coverage to Coveralls | ||
- name: Coveralls | ||
uses: coverallsapp/github-action@master | ||
uses: coverallsapp/github-action@v2 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
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