Skip to content

Commit

Permalink
build(actions): cherry-pick gh actions to 6.x (#5582)
Browse files Browse the repository at this point in the history
* build(actions): setup initial gh actions script

* build(actions): include node.js 14

* test(api): update fixtures

* build: Fix api_guardian params

Co-authored-by: Ben Lesh <ben@benlesh.com>
  • Loading branch information
kwonoj and benlesh committed Aug 16, 2020
1 parent 64e6bff commit 193e519
Show file tree
Hide file tree
Showing 7 changed files with 298 additions and 219 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci_main.yml
@@ -0,0 +1,38 @@
name: CI

on:
pull_request:
types: ['opened', 'reopened', 'synchronize']

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
node: [ '11', '12', '13', '14' ]

name: Node ${{ matrix.node }} build

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: install
run: |
npm install -g npm@latest
npm ci
- name: lint
run: npm run lint
- name: build
run: npm run build_all
- name: test
run: |
npm test
npm run test:side-effects
- name: dtslint
run: npm run dtslint
- name: api_guardian
run: npm run api_guardian

28 changes: 28 additions & 0 deletions .github/workflows/ci_ts_latest.yml
@@ -0,0 +1,28 @@
name: CI (ts@latest)

on:
pull_request:
types: ['opened', 'reopened', 'synchronize']

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
node: [ '13' ]

name: ts@latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: build
run: |
npm install -g npm@latest
npm ci
npm install --no-save typescript@latest
npm run build_all
6 changes: 3 additions & 3 deletions api_guard/dist/typings/index.d.ts
Expand Up @@ -316,9 +316,9 @@ export declare class Notification<T> {
}

export declare enum NotificationKind {
NEXT = 'N',
ERROR = 'E',
COMPLETE = 'C'
NEXT = "N",
ERROR = "E",
COMPLETE = "C"
}

export interface ObjectUnsubscribedError extends Error {
Expand Down
4 changes: 2 additions & 2 deletions api_guard/dist/typings/testing/index.d.ts
Expand Up @@ -5,10 +5,10 @@ export declare class TestScheduler extends VirtualTimeScheduler {
constructor(assertDeepEqual: (actual: any, expected: any) => boolean | void);
createColdObservable<T = string>(marbles: string, values?: {
[marble: string]: T;
}, error?: any): ColdObservable<T>;
}, error?: any): ColdObservable<T>;
createHotObservable<T = string>(marbles: string, values?: {
[marble: string]: T;
}, error?: any): HotObservable<T>;
}, error?: any): HotObservable<T>;
createTime(marbles: string): number;
expectObservable(observable: Observable<any>, subscriptionMarbles?: string): ({
toBe: observableToBeFn;
Expand Down

0 comments on commit 193e519

Please sign in to comment.