Skip to content

Commit

Permalink
chore: move build to GH actions
Browse files Browse the repository at this point in the history
ref: UUI-241
  • Loading branch information
bogdan-niculescu-sch committed Jan 24, 2024
1 parent 72eaa98 commit e552507
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 20 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy sdk-example

on:
push:
tags: '*'

jobs:
build:
runs-on: ubuntu-latest
name: Run js tests
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run tests
run: |
npm run lint
npm run build
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "npm"
- name: Run script
default: ./scripts/internal_travis_trigger.sh
31 changes: 31 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test Pull Request

on:
pull_request:
types:
- opened
- reopened
- synchronize
push:
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
name: Run js tests
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run tests
run: |
npm run lint
npm run build
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

0 comments on commit e552507

Please sign in to comment.