Skip to content

Commit

Permalink
Add GH actions workflow for testing [SDK-4456] (#718)
Browse files Browse the repository at this point in the history
  • Loading branch information
Widcket authored Sep 14, 2023
1 parent 7e98585 commit 3e1cee5
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI
on:
pull_request:
types:
- opened
- synchronize

permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref == 'refs/heads/master' }}

jobs:
test:
name: Run JS tests
runs-on: ubuntu-latest

env:
node: 'lts/*'

steps:
- name: Checkout
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac

- name: Setup Node.js
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
with:
node-version: ${{ env.node }}
cache: 'yarn'

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Run tests
run: yarn run test:ci

- name: Upload coverage report
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d
with:
directory: coverage

0 comments on commit 3e1cee5

Please sign in to comment.