Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ github: [nevware21] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g
#issuehunt: # Replace with a single IssueHunt username
#lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
#polar: # Replace with a single Polar username
#buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
buy_me_a_coffee: nevware21 # Replace with a single Buy Me a Coffee username
#thanks_dev: # Replace with a single thanks.dev username
#custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
33 changes: 23 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,33 @@ jobs:

strategy:
matrix:
node-version: [ 12, 14, 16, 18 ]
node: [ 16, 18, 20, 22 ]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v3
- uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node_version }}
- run: npm install
node-version: ${{ matrix.node }}

- name: Update rush shrinkwrap dependencies
run: node common/scripts/install-run-rush.js update --full

- name: Npm Install
run: npm install

- name: Build
run: npm run build --verbose
timeout-minutes: 10
timeout-minutes: 15

- name: Unit tests
run: npm run test --verbose
- name: Report Coverage
run: npm run codecov
run: node common/scripts/install-run-rush.js test --verbose
timeout-minutes: 15

- name: Upload Coverage
uses: codecov/codecov-action@v5
with:
files: ./coverage/coverage-final.json
token: ${{ secrets.CODECOV_TOKEN }}

8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v6

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -54,7 +54,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v4

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -68,4 +68,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v4
35 changes: 35 additions & 0 deletions .github/workflows/pr-auto-approve.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Dependabot Auto Approve
on:
pull_request:
types:
- opened
- synchronize
- reopened

permissions:
pull-requests: write
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
auto-approve:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]' || github.actor == 'nev21'
steps:
- name: Wait for status checks
uses: lewagon/wait-on-check-action@v1.4.1
with:
ref: ${{ github.event.pull_request.head.sha }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 30
running-workflow-name: 'auto-approve'
allowed-conclusions: success,skipped,neutral

- name: Approve PR
if: success()
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ to your application or libraries. The support is all built and tested using Type
primary focuses of this package is to provide support for the creation of code that can be better minified, resulting in a smaller runtime payload which can directly assist with Page Load performance.

### Test Environments
- Node (12, 14, 16, 18)
- Node (16, 18, 20, 22)
- Browser (Chromium - headless)
- Web Worker (Chromium - headless)

Expand Down
10 changes: 0 additions & 10 deletions common/config/rush/command-line.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,6 @@
"enableParallelism": false,
"ignoreMissingScript": false,
"allowWarningsInSuccessfulBuild": true
},
{
"commandKind": "bulk",
"summary": "Run all codecov targets for all packages",
"name": "codecov",
"description": "Runs codecov for all projects",
"safeForSimultaneousRushProcesses": false,
"enableParallelism": false,
"ignoreMissingScript": false,
"allowWarningsInSuccessfulBuild": true
}
]
}
Loading