Skip to content

Commit

Permalink
chore: added a workflow for unit tests/linting (#112)
Browse files Browse the repository at this point in the history
* chore: added a workflow for unit test/linting

* chore: updated workflow title
  • Loading branch information
nickytonline authored Jun 28, 2023
1 parent a0efcef commit abeb18c
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Adapter Tests

on:
pull_request:
push:
branches: [main]
schedule:
- cron: '0 0 * * *'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
build:
name: Unit tests
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
fail-fast: false

steps:
- uses: actions/checkout@v3
- name: Installing Node.js
uses: actions/setup-node@v3
with:
node-version: 18
check-latest: true
- name: NPM Install
run: npm install
- name: Linting
run: npm run format:ci
- name: Run unit tests
run: npm test

0 comments on commit abeb18c

Please sign in to comment.