coverage-badge-action icon indicating copy to clipboard operation
coverage-badge-action copied to clipboard

My phone private

Open gimma1129 opened this issue 8 months ago • 0 comments

Directory structure:

❯ tree -a -L 1 --dirsfirst        
.
├── coverage
├── .git
├── .github
├── node_modules
├── out
├── resources
├── src
├── .vscode
├── .vscode-test
├── CHANGELOG.md
├── .editorconfig
├── eslint.config.mjs
├── .gitignore
├── LICENSE
├── package.json
├── package-lock.json
├── README.md
├── .tool-versions
├── tsconfig.json
├── .vscodeignore
└── .vscode-test.mjs

action.yaml:

name: 'Setup, Test and Package'
description: 'Shared setup, test and package steps'

runs:
  using: composite
  steps:
  - name: Install Node.js
    uses: actions/setup-node@v4
    with:
      node-version-file: .tool-versions

  - name: Install dependencies
    run: npm install
    shell: bash

  - name: Run tests
    run: xvfb-run -a npm run test:coverage
    shell: bash

  - name: ls-la before (for debug)
    shell: bash
    run: |
      ls -la

  - name: Update Coverage Badge
    # if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
    # if: github.ref_name == github.event.repository.default_branch
    uses: we-cli/coverage-badge-action@main

  - name: ls-la after (for debug)
    shell: bash
    run: |
      ls -la

  - name: Package
    shell: bash
    run: |
      npx vsce ls --tree
      npx vsce package --allow-star-activation

  - uses: actions/upload-artifact@v4
    with:
      name: easy-toggle-settings-artifacts
      path: easy-toggle-settings-*.vsix
      if-no-files-found: error

Originally posted by @mhagnumdw in #6

gimma1129 avatar May 11 '25 03:05 gimma1129