diff --git a/.github/labels.yaml b/.github/labels.yaml index 25b13d83..3a0623a4 100644 --- a/.github/labels.yaml +++ b/.github/labels.yaml @@ -1,75 +1,60 @@ -- - name: 'good first issue' - color: '5319e7' - description: 'Good for newcomers' +- name: "good first issue" + color: "5319e7" + description: "Good for newcomers" aliases: [] -- - name: 'help wanted' - color: '008672' - description: 'Extra attention is needed' +- name: "help wanted" + color: "008672" + description: "Extra attention is needed" aliases: [] -- - name: 'status: pending' +- name: "status: pending" color: c5def5 - description: 'More info is needed before deciding what to do' + description: "More info is needed before deciding what to do" aliases: [] -- - name: 'status: pinned' +- name: "status: pinned" color: 0052cc - description: 'Should not be labeled as stale' + description: "Should not be labeled as stale" aliases: [] -- - name: 'status: stale' +- name: "status: stale" color: fbca04 - description: 'Inactive issues and PRs' + description: "Inactive issues and PRs" aliases: [] -- - name: 'status: wontfix' +- name: "status: wontfix" color: cfd3d7 - description: 'This will not be worked on' + description: "This will not be worked on" aliases: [] -- - name: 'type: bug' +- name: "type: bug" color: d73a4a - description: 'Verified problems that need to be worked on' + description: "Verified problems that need to be worked on" aliases: [] -- - name: 'type: chore' +- name: "type: chore" color: C5DEF5 - description: 'Code changes that neither fix bugs nor add features (refactoring, dependency changes, ...)' + description: "Code changes that neither fix bugs nor add features (refactoring, dependency changes, ...)" aliases: [] -- - name: 'type: docs' +- name: "type: docs" color: C5DEF5 - description: 'Documentation changes' + description: "Documentation changes" aliases: [] -- - name: 'type: duplicate' +- name: "type: duplicate" color: cfd3d7 - description: 'This issue or pull request already exists' + description: "This issue or pull request already exists" aliases: [] -- - name: 'type: feature' +- name: "type: feature" color: 0E8A16 - description: 'New feature or feature request' + description: "New feature or feature request" aliases: [] -- - name: 'type: fix' +- name: "type: fix" color: 1D76DB - description: 'Updates to existing functionalities' + description: "Updates to existing functionalities" aliases: [] -- - name: 'type: invalid' +- name: "type: invalid" color: e4e669 - description: 'This doesn''t seem right' + description: "This doesn't seem right" aliases: [] -- - name: 'type: not a bug' +- name: "type: not a bug" color: 0e8a16 - description: 'Reports that happen not be our fault' + description: "Reports that happen not be our fault" aliases: [] -- - name: 'type: question' +- name: "type: question" color: d876e3 - description: 'Further information is requested' + description: "Further information is requested" aliases: [] diff --git a/.github/workflows/cspell.yml b/.github/workflows/cspell.yml index 71feda22..ac88c374 100644 --- a/.github/workflows/cspell.yml +++ b/.github/workflows/cspell.yml @@ -1,7 +1,6 @@ -name: "Check spelling" +name: Check spelling on: pull_request: - jobs: spellcheck: runs-on: ubuntu-latest @@ -9,5 +8,5 @@ jobs: - uses: actions/checkout@v4 - uses: streetsidesoftware/cspell-action@v5 with: - files: "*.{rs,ts,tsx,md}" - incremental_files_only: false + incremental_files_only: true + strict: false diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml index 888cad4f..c646bd36 100644 --- a/.github/workflows/deno.yml +++ b/.github/workflows/deno.yml @@ -2,20 +2,26 @@ name: Deno on: pull_request: + paths: + - "**.json" + - "**.ts" + - "**.tsx" push: branches: - main + paths: + - "**.json" + - "**.ts" + - "**.tsx" jobs: - fmt: + format: runs-on: ubuntu-latest steps: - - name: Setup repo - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - uses: actions/checkout@v4 - - name: Setup Deno - uses: denoland/setup-deno@v1 + - uses: denoland/setup-deno@v1 with: deno-version: v1.x diff --git a/.github/workflows/export-labels.yml b/.github/workflows/export-labels.yml index 4153fd43..da644c0b 100644 --- a/.github/workflows/export-labels.yml +++ b/.github/workflows/export-labels.yml @@ -41,4 +41,3 @@ jobs: branch: create-pull-request/patch-export-label add-paths: | .github/labels.yaml - diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 3b3cd691..7ad0b33a 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -3,7 +3,12 @@ name: Node CI on: pull_request: push: - branches: [main] + branches: + - main + paths: + - "**.json" + - "**.ts" + - "**.tsx" jobs: build: @@ -20,8 +25,8 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - name: Install dependencies - uses: bahmutov/npm-install@v1 + cache: "npm" + - run: npm ci - run: npm run build - run: npm run lint @@ -35,8 +40,13 @@ jobs: "npx http-server packages/ui/storybook-static --port 6006 --silent" \ "npx wait-on tcp:6006 && npm test" - - name: Codecov - uses: codecov/codecov-action@v3 + - name: compressed-size-action + uses: preactjs/compressed-size-action@2.5.0 + with: + pattern: "./packages/ui/lib/**/*.{js,css,html,json}" + exclude: "{**/*.map,**/node_modules/**}" + + - uses: codecov/codecov-action@v3 chromatic-deployment: runs-on: ubuntu-latest @@ -49,5 +59,4 @@ jobs: - name: Publish to Chromatic uses: chromaui/action@v10 with: - token: ${{ secrets.github_token }} projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} diff --git a/.github/workflows/size.yml b/.github/workflows/size.yml deleted file mode 100644 index 13722288..00000000 --- a/.github/workflows/size.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: compressed-size - -on: [pull_request] -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: compressed-size-action - uses: preactjs/compressed-size-action@2.5.0 - with: - repo-token: "${{ secrets.github_token }}" - pattern: "./packages/ui/lib/**/*.{js,css,html,json}" - exclude: "{**/*.map,**/node_modules/**}" diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml index d3ea75aa..76994395 100644 --- a/.github/workflows/sync-labels.yml +++ b/.github/workflows/sync-labels.yml @@ -1,18 +1,25 @@ name: Sync labels + on: + push: + branches: + - main + paths: + - ".github/labels.yaml" workflow_dispatch: - permissions: issues: write + contents: read jobs: - labels: + label_sync: runs-on: ubuntu-latest - + timeout-minutes: 2 steps: + - uses: actions/checkout@v3 - uses: EndBug/label-sync@v2 with: token: ${{ secrets.GITHUB_TOKEN }} - config-file: https://raw.githubusercontent.com/azu/github-label-setup/master/labels.json + config-file: .github/labels.yaml delete-other-labels: true