Skip to content

Merge pull request #279 from jacob-alford/ja/fix-optional-guard #497

Merge pull request #279 from jacob-alford/ja/fix-optional-guard

Merge pull request #279 from jacob-alford/ja/fix-optional-guard #497

Workflow file for this run

name: Test
on:
push:
branches:
- main
- v2-reorg
- $default-branch
pull_request:
branches:
- main
- v2-reorg
- $default-branch
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 14.x
- 16.x
- 18.x
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn run build
- run: yarn run eslint
- run: yarn run test:ci
- name: Add coverage
if: github.ref == 'refs/heads/main'
uses: coverallsapp/[email protected]
env:
NODE_COVERALLS_DEBUG: 1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-docs:
if: github.ref == 'refs/heads/main'
needs:
- build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs