-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added sample showing how to retrieve the current state from events
- Loading branch information
1 parent
98889ec
commit bf1de62
Showing
28 changed files
with
8,850 additions
and
27 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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Node.js Continuous Integration and Continuous Delivery | ||
|
||
on: | ||
# run it on push to the default repository branch | ||
push: | ||
branches: [main] | ||
# run it during pull request | ||
pull_request: | ||
|
||
defaults: | ||
run: | ||
# relative path to the place where source code (with package.json) is located | ||
working-directory: samples/foundations | ||
|
||
jobs: | ||
build-and-test-code: | ||
name: Build and test application code | ||
# use system defined below in the tests matrix | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
# define the test matrix | ||
matrix: | ||
# selected operation systems to run CI | ||
os: [windows-latest, ubuntu-latest, macos-latest] | ||
# selected node version to run CI | ||
node-version: [14.x, 15.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
# use the node version defined in matrix above | ||
node-version: ${{ matrix.node-version }} | ||
# install dependencies | ||
- run: npm ci | ||
# run linting (ESlint and Prettier) | ||
- run: npm run lint | ||
# run build | ||
- run: npm run build:ts | ||
# run tests | ||
- run: npm test |
Oops, something went wrong.