Skip to content

build TS types for releases #2

build TS types for releases

build TS types for releases #2

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npx playwright install --with-deps
- run: npm test
# build:
#
# runs-on: ubuntu-latest
#
# strategy:
# matrix:
# node-version: [18.x, 20.x]
#
# steps:
# - uses: actions/checkout@v3
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v3
# with:
# node-version: ${{ matrix.node-version }}
# - run: npm ci
# - run: npm run build
# - run: |
# git add --all && \
# git diff-index --cached HEAD --stat --exit-code || \
# (echo && echo "The above files changed because the build is not up to date." && echo "Please rebuild Prism." && exit 1)
# lint:
#
# runs-on: ubuntu-latest
#
# steps:
# - uses: actions/checkout@v3
# - name: Use Node.js 20.x
# uses: actions/setup-node@v3
# with:
# node-version: 20.x
# - run: npm ci
# - run: npm run lint:ci
#
# coverage:
#
# runs-on: ubuntu-latest
#
# steps:
# - uses: actions/checkout@v3
# - name: Use Node.js 20.x
# uses: actions/setup-node@v3
# with:
# node-version: 20.x
# - run: npm ci
# - run: npm run regex-coverage