Skip to content

Replace dependency rollup-plugin-terser with @rollup/plugin-terser 0.1.0 #337

Replace dependency rollup-plugin-terser with @rollup/plugin-terser 0.1.0

Replace dependency rollup-plugin-terser with @rollup/plugin-terser 0.1.0 #337

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
env:
NODE_VERSION: 18
jobs:
build:
name: πŸ‘· Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
# Skip post-install scripts here, as a malicious
# script could steal NODE_AUTH_TOKEN.
- name: Install dependencies
run: yarn install
env:
CI: true
- name: Building
run: yarn build
gitleaks:
name: πŸ”’ Run Git leaks
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
# Skip post-install scripts here, as a malicious
# script could steal NODE_AUTH_TOKEN.
- name: Install dependencies
run: yarn install
env:
CI: true
- name: Gitleaks
run: yarn leaks
shell: bash
unit-test:
name: πŸ‘” Run Unit Tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16, 18, 20]
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
# Skip post-install scripts here, as a malicious
# script could steal NODE_AUTH_TOKEN.
- name: Install dependencies
run: yarn install
env:
CI: true
- name: Testing
run: npm test
- name: Coverage check
uses: devmasx/[email protected]
with:
type: lcov
min_coverage: 15
result_path: coverage/lcov.info
token: ${{ github.token }}