Skip to content

Commit

Permalink
Create TS workflow (#1)
Browse files Browse the repository at this point in the history
* Create TS workflow

This sets up GitHub Actions workflow for running lints and tests for the TS SDK. It doesn't run the full pipeline, but this should cover at least basic stuff in case we receive contributions.

* Clean up the lockfile of internal repo references
  • Loading branch information
slahtine committed Aug 27, 2024
1 parent 1859ced commit c062ca5
Show file tree
Hide file tree
Showing 3 changed files with 3,816 additions and 1,931 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: NaC TypeScript SDK CI

on:
push

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run lint
- run: npm test
1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
registry=https://registry.npmjs.org
# registry=https://registry1-docker-io.repo.lab.pl.alcatel-lucent.com/api/npm/npm-remote
save-exact=true
Loading

0 comments on commit c062ca5

Please sign in to comment.