Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
m00sey committed Sep 19, 2023
1 parent 5825fbf commit 69d0a1a
Show file tree
Hide file tree
Showing 2 changed files with 43 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: Run Tests
on:
push:
branches:
- 'main'
- 'development'
pull_request:
branches:
- 'main'
- 'development'
workflow_dispatch:
jobs:
build:
name: Build, lint, and test on Node 18.16.0 and ${{ matrix.os }}

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macOS-latest, ubuntu-latest]

steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Set Node.js 18.16.0
uses: actions/setup-node@v3
with:
node-version: 18.16.0

- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install

- name: Test
run: yarn test --ci --coverage --maxWorkers=2

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
!.yarn/sdks
!.yarn/versions

coverage/

# editors
.vscode
.idea

0 comments on commit 69d0a1a

Please sign in to comment.