Skip to content

3.2.0

3.2.0 #241

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the trunk branch
push:
branches: [master]
pull_request:
branches: [master]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
name: Node.js ${{ matrix.node-version }}
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version:
- 20
- 18
- 16
- 14
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Setup npm for Node 14
if: ${{ matrix.node-version == 14 }}
run: npm install -g npm@8.19.4
- name: Install dependencies
run: npm install --ignore-scripts
- name: Build minify
run: npm run prepack
- name: Run lint and tests
run: npm run checks
- name: Minify test
run: npm run minifytest