-
Notifications
You must be signed in to change notification settings - Fork 191
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
Showing
5 changed files
with
147 additions
and
42 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,135 @@ | ||
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
||
name: CI | ||
|
||
on: push | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14.x' | ||
cache: yarn | ||
- name: Install dependencies | ||
run: yarn --frozen-lockfile | ||
- name: Lint | ||
run: yarn lint | ||
|
||
test-libs: | ||
name: Test - core, schema, legacy-scripting-runner | ||
runs-on: ubuntu-latest | ||
environment: ci | ||
env: | ||
ZAPIER_DEPLOY_KEY: ${{ secrets.ZAPIER_DEPLOY_KEY }} | ||
TEST_APP_ID: ${{ secrets.TEST_APP_ID }} | ||
|
||
strategy: | ||
matrix: | ||
node-version: [12.x, 14.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: yarn | ||
- name: Install dependencies | ||
run: yarn --frozen-lockfile | ||
- name: Test - core | ||
run: yarn test | ||
working-directory: packages/core | ||
- name: Test - schema | ||
run: yarn test | ||
working-directory: packages/schema | ||
- name: Test - legacy-scripting-runner | ||
run: yarn test | ||
working-directory: packages/legacy-scripting-runner | ||
|
||
test-cli: | ||
name: Test - cli | ||
runs-on: ${{ matrix.os }} | ||
environment: ci | ||
env: | ||
ZAPIER_DEPLOY_KEY: ${{ secrets.ZAPIER_DEPLOY_KEY }} | ||
TEST_APP_ID: ${{ secrets.TEST_APP_ID }} | ||
|
||
strategy: | ||
matrix: | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
node-version: [12.x, 14.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: yarn | ||
- name: Install dependencies | ||
run: yarn --frozen-lockfile | ||
- name: Test - cli | ||
run: yarn test | ||
working-directory: packages/cli | ||
|
||
smoke-test-libs: | ||
name: Smoke test - core, schema | ||
runs-on: ubuntu-latest | ||
environment: ci | ||
env: | ||
ZAPIER_DEPLOY_KEY: ${{ secrets.ZAPIER_DEPLOY_KEY }} | ||
TEST_APP_ID: ${{ secrets.TEST_APP_ID }} | ||
|
||
strategy: | ||
matrix: | ||
node-version: [12.x, 14.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: yarn | ||
- name: Install dependencies | ||
run: yarn --frozen-lockfile | ||
- name: Smoke test - core | ||
run: yarn smoke-test | ||
working-directory: packages/core | ||
- name: Smoke test - schema | ||
run: yarn smoke-test | ||
working-directory: packages/schema | ||
|
||
smoke-test-cli: | ||
name: Smoke test - cli | ||
runs-on: ${{ matrix.os }} | ||
|
||
environment: ci | ||
env: | ||
ZAPIER_DEPLOY_KEY: ${{ secrets.ZAPIER_DEPLOY_KEY }} | ||
TEST_APP_ID: ${{ secrets.TEST_APP_ID }} | ||
|
||
strategy: | ||
matrix: | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
node-version: [12.x, 14.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: yarn | ||
- name: Install dependencies | ||
run: yarn --frozen-lockfile | ||
- name: Smoke test - cli | ||
run: yarn smoke-test | ||
working-directory: packages/cli |
This file was deleted.
Oops, something went wrong.
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
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
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