chore(deps-dev): bump @types/node from 22.5.5 to 22.9.1 #903
Workflow file for this run
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
name: Continuos Integration | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: install | |
run: npm ci | |
- name: eslint | |
run: npm run lint | |
- name: build | |
run: npm run build | |
test_unit: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: install | |
run: npm ci | |
- name: test | |
run: npm run test:ci | |
- name: issue badge | |
run: | | |
mkdir -p .github/pages/badges | |
npx make-coverage-badge --report-path .coverage/coverage-summary.json --output-path .github/pages/badges/coverage.badge.svg | |
- uses: actions/upload-artifact@master | |
with: | |
name: coverage-badge-artifact | |
path: .github/pages/badges/coverage.badge.svg | |
test_perf: | |
name: Performance Tests | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: install | |
run: npm ci | |
- name: test | |
id: perf_test | |
run: | | |
npm run test:perf:ci | |
- name: attach report | |
if: github.event.number | |
uses: thollander/actions-comment-pull-request@v2 | |
with: | |
pr_number: ${{ github.event.number }} | |
filePath: .benchmark | |
mode: recreate | |
comment_tag: benchmark_comment | |
create_if_not_exists: true | |
test_visual: | |
name: Visual | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: npm ci | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Run Playwright tests | |
run: npx playwright test | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 | |
publish: | |
name: Publish | |
timeout-minutes: 2 | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
pages: write | |
id-token: write | |
steps: | |
- uses: google-github-actions/release-please-action@v4 | |
id: release | |
with: | |
# this assumes that you have created a personal access token | |
# (PAT) and configured it as a GitHub action secret named | |
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important). | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- uses: actions/download-artifact@master | |
with: | |
name: coverage-badge-artifact | |
path: .github/pages/badges/coverage.badge.svg | |
- name: install | |
run: npm ci | |
- name: build web bundle | |
run: npm run build | |
- name: build lib | |
run: npm run build:lib | |
- name: upload release artifact | |
if: ${{ steps.release.outputs.release_created }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
tar -czvf "${{ steps.release.outputs.tag_name }}-jsbundle.tar.gz" -C dist/jsbundle . | |
tar -czvf "${{ steps.release.outputs.tag_name }}-lib.tar.gz" -C dist/lib . | |
gh release upload ${{ steps.release.outputs.tag_name }} "${{ steps.release.outputs.tag_name }}-jsbundle.tar.gz" | |
gh release upload ${{ steps.release.outputs.tag_name }} "${{ steps.release.outputs.tag_name }}-lib.tar.gz" | |
- name: build docs | |
id: docs | |
if: ${{ steps.release.outputs.prs_created != true || steps.release.outputs.releases_created == true }} | |
run: | | |
npm run build:docs | |
mkdir -p .github/pages/ | |
cp -r docs/tsdoc/* .github/pages/ | |
echo "docs_created=true" >> "$GITHUB_OUTPUT" | |
- name: Setup Pages | |
if: ${{ steps.docs.outputs.docs_created }} | |
uses: actions/configure-pages@v4 | |
- name: upload docs artifact | |
if: ${{ steps.docs.outputs.docs_created }} | |
uses: actions/upload-pages-artifact@v2 | |
with: | |
path: ".github/pages/" | |
- name: deploy docs artifact | |
if: ${{ steps.docs.outputs.docs_created }} | |
uses: actions/deploy-pages@v3 | |
needs: [test_unit, test_visual, build] | |
if: github.ref_name == 'main' | |