Skip to content

My phone private #7

Description

@gimma1129

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions