Skip to content

Create test.yaml

Create test.yaml #415

Workflow file for this run

name: Unit tests
on:
push:
branches:
- main
pull_request:
branches: [main]
jobs:
unit-tests:
name: Unit tests
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
- name: Install dependencies
run: npm install
- name: Run unit tests
env:
VITE_PINPOINT_IDENTITY_POOL_ID: ${{ secrets.VITE_PINPOINT_IDENTITY_POOL_ID }}
VITE_PINPOINT_APPLICATION_ID: ${{ secrets.VITE_PINPOINT_APPLICATION_ID }}
run: npm run test