Skip to content

Commit

Permalink
Merge pull request apache#16 from damccorm/javascript - Rename node-t…
Browse files Browse the repository at this point in the history
…s to typescript and add GitHub Action

Rename node-ts to typescript and add GitHub Action
  • Loading branch information
pabloem authored Feb 17, 2022
2 parents ba36fcc + 8de08ed commit 76d5059
Show file tree
Hide file tree
Showing 108 changed files with 1,135 additions and 2 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/typescript_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

# To learn more about GitHub Actions in Apache Beam check the CI.md

name: TypeScript Tests

on:
workflow_dispatch:
schedule:
- cron: '10 2 * * *'
push:
branches: ['master', 'release-*', 'javascript']
tags: 'v*'
pull_request:
branches: ['master', 'release-*', 'javascript']
tags: 'v*'
paths: ['sdks/typescript/**']


jobs:

typescript_unit_tests:
name: 'TypeScript Unit Tests'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
persist-credentials: false
submodules: recursive
- name: Install node
uses: actions/setup-node@v2
with:
node-version: '16'
- run: npm install
working-directory: ./sdks/typescript
- run: npm run build
working-directory: ./sdks/typescript
- run: npm run prettier-check
working-directory: ./sdks/typescript
if: ${{ matrix.os == 'ubuntu-latest' }}
- run: npm run codecovTest
working-directory: ./sdks/typescript
if: ${{ matrix.os == 'ubuntu-latest' }}
- run: npm test
working-directory: ./sdks/typescript
if: ${{ matrix.os != 'ubuntu-latest' }}
2 changes: 1 addition & 1 deletion sdks/node-ts/.gitignore → sdks/typescript/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ bower_components
.DS_Store
Thumbs.db

# Ignore built ts files
# Ignore built js files
dist/**/*

# ignore yarn.lock
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 76d5059

Please sign in to comment.