Skip to content

Commit

Permalink
add test-typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Jul 1, 2024
1 parent 6e33f9e commit 76d8324
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/test-typescript.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Test typescript

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: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
repository: jakebailey/TypeScript
ref: coverage

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

- run: npm ci

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

- name: Show CPU and Memory
run: lscpu && free -h

- name: Run tests with coverage
run: npm test -- --no-lint --coverage
env:
FORCE_COLOR: true
MCR_LOG_TIME: true

0 comments on commit 76d8324

Please sign in to comment.