Skip to content

Commit

Permalink
Adding github action test automation (#32)
Browse files Browse the repository at this point in the history
* Testing testfile

* Adding openapi-bindings PRs to testfile

* Fixing node version

* Trying to fix npm clean install bug by replacing package-lock.json

* Changing env variable access to API_HOST and API_KEY

* Adding environment setup test

* Fixing host assignment

* Fixing print statement

* Adding env variables to test environment

* Commenting out dotenv load

* Adding names to testfile, checking variable addition in console

* Removing env var console check, adding semicolon to require.config

* Changing runs on environment to allow staging connection

* Fixing instant translation memory id

* Adding polling for memory import
  • Loading branch information
nicholas-chiu authored Oct 10, 2024
1 parent 652031d commit 15e1326
Show file tree
Hide file tree
Showing 6 changed files with 1,819 additions and 6,484 deletions.
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
Loading

0 comments on commit 15e1326

Please sign in to comment.