-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
17,019 additions
and
21,217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"github>studiometa/renovate" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: export-size | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- develop | ||
|
||
jobs: | ||
export-size: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '0' | ||
- uses: titouanmathis/export-size-action@main | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
build_script: npm run build | ||
paths: dist | ||
node-version: 22 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: publish-and-release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*.*.*' | ||
|
||
jobs: | ||
publish-and-release: | ||
runs-on: macos-latest | ||
permissions: | ||
contents: write | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22 | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- name: Get npm cache directory | ||
id: npm-cache-dir | ||
shell: bash | ||
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT} | ||
|
||
- uses: actions/cache@v4 | ||
id: npm-cache | ||
with: | ||
path: | | ||
${{ steps.npm-cache-dir.outputs.dir }} | ||
**/node_modules | ||
.eslintcache | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: ${{ runner.os }}-node- | ||
|
||
- run: npm install --no-audit --no-fund | ||
|
||
- run: npm run build | ||
|
||
- name: Test | ||
run: npm run test -- -- --retry=3 --coverage.enabled | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
directory: ./packages/coverage | ||
flags: unittests | ||
fail_ci_if_error: false | ||
verbose: true | ||
|
||
- run: | | ||
NPM_TAG='latest' | ||
IS_PRERELEASE=false | ||
if [[ $GITHUB_REF_NAME =~ 'alpha' || $GITHUB_REF_NAME =~ 'beta' || $GITHUB_REF_NAME =~ 'rc' ]]; then | ||
NPM_TAG='next' | ||
IS_PRERELEASE=true | ||
fi | ||
echo "NPM_TAG=$NPM_TAG" >> $GITHUB_ENV | ||
echo "IS_PRERELEASE=$IS_PRERELEASE" >> $GITHUB_ENV | ||
- uses: JS-DevTools/npm-publish@v3 | ||
with: | ||
provenance: true | ||
package: dist/ | ||
tag: ${{ env.NPM_TAG }} | ||
token: ${{ secrets.NPM_TOKEN }} | ||
|
||
- uses: ncipollo/release-action@v1 | ||
with: | ||
tag: ${{ github.ref }} | ||
name: v${{ github.ref_name }} | ||
body: Please refer to [CHANGELOG.md](https://github.com/${{ github.repository }}/blob/${{ github.ref_name }}/CHANGELOG.md) for details. | ||
draft: false | ||
prerelease: ${{ env.IS_PRERELEASE }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,57 @@ | ||
name: Tests | ||
name: tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- feature/vue-3 | ||
- master | ||
- develop | ||
pull_request: | ||
|
||
jobs: | ||
|
||
Build: | ||
build: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 20 | ||
cache: npm | ||
- name: Install modules | ||
run: npm install | ||
- name: Build the package | ||
run: npm run build | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22 | ||
cache: npm | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Build | ||
run: npm run build | ||
|
||
Code-Quality: | ||
code-quality: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 20 | ||
cache: npm | ||
- name: Install modules | ||
run: npm install | ||
- name: Run code quality tests | ||
run: npm run lint -- --format=compact | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22 | ||
cache: npm | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Run code quality tests | ||
run: npm run lint | ||
|
||
Export-Size: | ||
runs-on: ubuntu-latest | ||
unit: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
fetch-depth: '0' | ||
- uses: titouanmathis/export-size-action@main | ||
node-version: 22 | ||
cache: npm | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Run tests | ||
run: npm run test -- -- --retry=3 --coverage.enabled | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
build_script: npm run build | ||
paths: dist | ||
files: ./packages/coverage/clover.xml | ||
flags: unittests | ||
fail_ci_if_error: false | ||
verbose: true | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
20 | ||
22 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.