-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- mostly duplicate what I have in [react-signature-canvas](https://github.com/agilgur5/react-signature-canvas/blob/main/.github/workflows/ci.yml) - update LTS Node versions to 18.x and 20.x - comment out linting step for now as `ts-standard` hasn't been configured in this repo - add `tsc` and `test:coverage` scripts for CI - had to specify `--noEmit` for now, the whole build system will need to be revamped later - replace Travis badge with GH Actions badge
- Loading branch information
Showing
4 changed files
with
38 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: CI | ||
on: [push] | ||
jobs: | ||
ci: | ||
name: CI - Node ${{ matrix.node-version }}, ${{ matrix.os }} | ||
|
||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
node-version: [16.x, 18.x] # LTS Node: https://nodejs.org/en/about/releases/ | ||
os: [ubuntu-latest, windows-latest, macOS-latest] | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
- name: Setup Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
- name: Install | ||
run: npm ci | ||
|
||
- name: Typecheck | ||
run: npm run tsc | ||
# TODO: add when ts-standard linting is configured | ||
# - name: Lint | ||
# run: npm run lint | ||
- name: Build | ||
run: npm run build | ||
|
||
- name: Test w/ coverage report | ||
run: npm run test:coverage | ||
- name: Upload coverage report to Codecov | ||
uses: codecov/codecov-action@v2 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters