Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Jun 30, 2024
1 parent 9abfdc5 commit f86ad5e
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/test-tstyche.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Test tstyche

on:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

permissions:
contents: read

jobs:

build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Use Node.js version
uses: actions/setup-node@v4
with:
node-version: 20
cache: ''

- run: npm install
- run: npm run build
env:
FORCE_COLOR: true

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: artifact
path: ./lib

coverage:
needs: build
runs-on: macos-latest

steps:
- uses: actions/checkout@v4
with:
repository: tstyche/tstyche
ref: main

- uses: actions/setup-node@v4
with:
node-version: 20
check-latest: true

- run: yarn install

- name: Download artifact
uses: actions/download-artifact@v4
with:
name: artifact
path: ./node_modules/monocart-coverage-reports/lib

- run: yarn test:coverage
env:
FORCE_COLOR: true
MCR_LOG_TIME: true
NODE_OPTIONS: --max-old-space-size=8192

0 comments on commit f86ad5e

Please sign in to comment.