Test tstyche #31
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
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: corepack enable | |
- run: yarn install | |
- run: yarn add monocart-coverage-reports@latest | |
- 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 |