Create dependabot.yml (#58) #54
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
name: On Push | |
on: [push] | |
jobs: | |
# lint: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - name: Setup Node | |
# uses: actions/setup-node@v1 | |
# with: | |
# node-version: 16.x | |
# - run: yarn | |
# - run: yarn lint | |
# env: | |
# CI: true | |
test-and-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- run: yarn | |
- run: yarn build | |
- run: yarn test | |
test-building-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- run: yarn | |
- run: yarn build | |
- run: yarn build:docs | |
test-examples: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- run: yarn | |
- run: yarn build | |
- run: cd examples/api && yarn test:js | |
env: | |
DEPLOYMENT_ID: ${{ secrets.DEPLOYMENT_ID }} | |
REGION: ${{ secrets.REGION }} | |
- run: cd examples/api && yarn test:ts | |
env: | |
DEPLOYMENT_ID: ${{ secrets.DEPLOYMENT_ID }} | |
REGION: ${{ secrets.REGION }} | |
- run: cd examples/cli && chmod +x ./run.sh && ./run.sh | |
env: | |
DEPLOYMENT_ID: ${{ secrets.DEPLOYMENT_ID }} | |
REGION: ${{ secrets.REGION }} |