Skip to content

Commit

Permalink
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
Browse files Browse the repository at this point in the history
oskardudycz committed Apr 27, 2021
1 parent 98889ec commit bf1de62
Showing 28 changed files with 8,850 additions and 27 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/samples_foundations.yml
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
Loading

0 comments on commit bf1de62

Please sign in to comment.