-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/npm_and_yarn/express-4.19.2
- Loading branch information
Showing
5 changed files
with
4,109 additions
and
4,379 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,29 +1,43 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: [ main ] | ||
branches: | ||
- '*' | ||
- '*/*' | ||
- main | ||
pull_request: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Cache node modules | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-node-modules | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
# npm cache files are stored in `~/.npm` on Linux/macOS | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: npm install and npm run CI commands | ||
run: | | ||
npm install | ||
npm run build | ||
node-version: 16.20.2 | ||
|
||
- name: Install dependencies | ||
run: npm install --force | ||
|
||
- name: Build of code | ||
run: npm run build | ||
|
||
- name: Run unit tests | ||
id: unit-tests | ||
run: | | ||
if npm run test:ci; then | ||
echo "Tests passed" | ||
echo "::set-output name=status::success" | ||
else | ||
echo "Tests failed" | ||
echo "::set-output name=status::failure" | ||
fi | ||
- name: Check test status | ||
run: exit 1 | ||
if: ${{ steps.unit-tests.outputs.status == 'failure' }} |
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 +1 @@ | ||
v18.19.0 | ||
v16.20.2 |
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
Oops, something went wrong.