Skip to content

Commit

Permalink
ENG 18614/test clean up (#36)
Browse files Browse the repository at this point in the history
* Adding workflow tests

* Fixing version

* Fixing test folder call

* Switching to PAT for test dispatch
  • Loading branch information
nicholas-chiu authored Nov 19, 2024
1 parent 4382701 commit 819478f
Show file tree
Hide file tree
Showing 69 changed files with 2,917 additions and 585 deletions.
3 changes: 2 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
],
"@babel/plugin-proposal-nullish-coalescing-operator",
"@babel/plugin-proposal-do-expressions",
"@babel/plugin-proposal-function-bind"
"@babel/plugin-proposal-function-bind",
"@babel/plugin-transform-runtime"
]
}
34 changes: 34 additions & 0 deletions .github/workflows/nodeapp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Mocha Tests
env:
API_HOST: ${{ vars.API_HOST }}
API_KEY: ${{ secrets.API_KEY }}

on:
push:
branches: [ master, openapi-bindings ]
pull_request:
branches: [ master, openapi-bindings ]

jobs:
build:
runs-on: gcp-runner
steps:
- name: Checkout
uses: actions/checkout@v2

- name: 🔨 Setup Node.js
uses: actions/setup-node@v2
with:
always-auth: true
node-version: '20.10.0'
registry-url: https://npm.pkg.github.com
scope: '@lilt'

- name: Install dependencies
run: npm ci

- name: Run build
run: npm run build --if-present

- name: Run Mocha tests
run: npm test
1 change: 1 addition & 0 deletions .github/workflows/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6.1.0
with:
token: ${{ secrets.GHA_REPO_DISPATCH_TOKEN }}
commit-message: Regenerates API Bindings
title: "OpenAPI: Regenerates API Bindings"
body: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/node_modules/
/dist/
.env
Loading

0 comments on commit 819478f

Please sign in to comment.