Skip to content

chore: migrate to yakumo v1 & node:test #142

chore: migrate to yakumo v1 & node:test

chore: migrate to yakumo v1 & node:test #142

Workflow file for this run

name: Test
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [18, 20]
steps:
- name: Check out
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: yarn
- name: Build
run: yarn build
- name: Unit Test
run: yarn test:json
- name: Report Coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/coverage-final.json
name: codecov
deploy:
if: ${{ false }}
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
- name: Install
run: yarn
- name: Build source
run: yarn build
- name: Build docs
run: yarn build:docs
- name: Deploy
if: ${{ github.repository == 'shigma/schemastery' && github.ref == 'refs/heads/master' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/.vuepress/dist/schemastery
publish_branch: pages
force_orphan: true