Skip to content

Commit

Permalink
ci: test only Node.js 20
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku committed Dec 15, 2023
1 parent 3575094 commit 59cfbba
Show file tree
Hide file tree
Showing 33 changed files with 8,020 additions and 7,810 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Use Node.js 20
uses: actions/setup-node@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: yarn
Expand Down Expand Up @@ -57,5 +56,3 @@ jobs:
with:
name: dist
path: dist/

...
2 changes: 0 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,3 @@ jobs:

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

...
2 changes: 0 additions & 2 deletions .github/workflows/issue-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,3 @@ jobs:
with:
issue-form: ${{ steps.issue-parser.outputs.jsonString }}
token: ${{ secrets.GITHUB_TOKEN }}

...
5 changes: 1 addition & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Use Node.js 20.x
uses: actions/setup-node@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: yarn
Expand All @@ -37,5 +36,3 @@ jobs:

- name: ESLint
run: yarn run lint

...
2 changes: 0 additions & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,3 @@ jobs:
with:
publish_latest_tag: false
token: ${{ secrets.GITHUB_TOKEN }}

...
2 changes: 0 additions & 2 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,3 @@ jobs:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

...
16 changes: 4 additions & 12 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---

name: Unit tests
name: Tests

on:
push:
Expand All @@ -14,20 +14,15 @@ permissions:

jobs:
test:
name: Unit Tests - Node.js
name: Node.js
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [ 18.x, 20.x ]

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version: 20
cache: yarn
cache-dependency-path: yarn.lock

Expand All @@ -44,7 +39,4 @@ jobs:
run: yarn test

- name: Codecov
if: ${{ matrix.node-version == '20.x' }}
uses: codecov/codecov-action@v3

...
38 changes: 18 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- markdownlint-disable MD033 MD041 -->
<!-- markdownlint-disable MD033 MD041 MD045 -->
<p align="center">
<img src="https://github.com/redhat-plumbers-in-action/team/blob/70f67465cc46e02febb16aaa1cace2ceb82e6e5c/members/black-plumber.png" width="100" />
<h1 align="center">TypeScript Action</h1>
<h1 align="center">Issue Commentator</h1>
</p>

[![GitHub Marketplace][market-status]][market] [![Lint Code Base][linter-status]][linter] [![Unit Tests][test-status]][test] [![CodeQL][codeql-status]][codeql] [![Check dist/][check-dist-status]][check-dist]
Expand All @@ -10,39 +10,37 @@

<!-- Status links -->

[market]: https://github.com/marketplace/actions/typescript-action
[market-status]: https://img.shields.io/badge/Marketplace-Typescript%20Action-blue.svg?colorA=24292e&colorB=0366d6&style=flat&longCache=true&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAM6wAADOsB5dZE0gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAERSURBVCiRhZG/SsMxFEZPfsVJ61jbxaF0cRQRcRJ9hlYn30IHN/+9iquDCOIsblIrOjqKgy5aKoJQj4O3EEtbPwhJbr6Te28CmdSKeqzeqr0YbfVIrTBKakvtOl5dtTkK+v4HfA9PEyBFCY9AGVgCBLaBp1jPAyfAJ/AAdIEG0dNAiyP7+K1qIfMdonZic6+WJoBJvQlvuwDqcXadUuqPA1NKAlexbRTAIMvMOCjTbMwl1LtI/6KWJ5Q6rT6Ht1MA58AX8Apcqqt5r2qhrgAXQC3CZ6i1+KMd9TRu3MvA3aH/fFPnBodb6oe6HM8+lYHrGdRXW8M9bMZtPXUji69lmf5Cmamq7quNLFZXD9Rq7v0Bpc1o/tp0fisAAAAASUVORK5CYII=
[market]: https://github.com/marketplace/actions/issue-commentator
[market-status]: https://img.shields.io/badge/Marketplace-Issue%20Commentator-blue.svg?colorA=24292e&colorB=0366d6&style=flat&longCache=true&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAM6wAADOsB5dZE0gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAERSURBVCiRhZG/SsMxFEZPfsVJ61jbxaF0cRQRcRJ9hlYn30IHN/+9iquDCOIsblIrOjqKgy5aKoJQj4O3EEtbPwhJbr6Te28CmdSKeqzeqr0YbfVIrTBKakvtOl5dtTkK+v4HfA9PEyBFCY9AGVgCBLaBp1jPAyfAJ/AAdIEG0dNAiyP7+K1qIfMdonZic6+WJoBJvQlvuwDqcXadUuqPA1NKAlexbRTAIMvMOCjTbMwl1LtI/6KWJ5Q6rT6Ht1MA58AX8Apcqqt5r2qhrgAXQC3CZ6i1+KMd9TRu3MvA3aH/fFPnBodb6oe6HM8+lYHrGdRXW8M9bMZtPXUji69lmf5Cmamq7quNLFZXD9Rq7v0Bpc1o/tp0fisAAAAASUVORK5CYII=

[linter]: https://github.com/redhat-plumbers-in-action/typescript-action/actions/workflows/lint.yml
[linter-status]: https://github.com/redhat-plumbers-in-action/typescript-action/actions/workflows/lint.yml/badge.svg
[linter]: https://github.com/redhat-plumbers-in-action/issue-commentator/actions/workflows/lint.yml
[linter-status]: https://github.com/redhat-plumbers-in-action/issue-commentator/actions/workflows/lint.yml/badge.svg

[test]: https://github.com/redhat-plumbers-in-action/typescript-action/actions/workflows/unit-tests.yml
[test-status]: https://github.com/redhat-plumbers-in-action/typescript-action/actions/workflows/unit-tests.yml/badge.svg
[test]: https://github.com/redhat-plumbers-in-action/issue-commentator/actions/workflows/unit-tests.yml
[test-status]: https://github.com/redhat-plumbers-in-action/issue-commentator/actions/workflows/unit-tests.yml/badge.svg

[codeql]: https://github.com/redhat-plumbers-in-action/typescript-action/actions/workflows/codeql-analysis.yml
[codeql-status]: https://github.com/redhat-plumbers-in-action/typescript-action/actions/workflows/codeql-analysis.yml/badge.svg
[codeql]: https://github.com/redhat-plumbers-in-action/issue-commentator/actions/workflows/codeql-analysis.yml
[codeql-status]: https://github.com/redhat-plumbers-in-action/issue-commentator/actions/workflows/codeql-analysis.yml/badge.svg

[check-dist]: https://github.com/redhat-plumbers-in-action/typescript-action/actions/workflows/check-dist.yml
[check-dist-status]: https://github.com/redhat-plumbers-in-action/typescript-action/actions/workflows/check-dist.yml/badge.svg
[check-dist]: https://github.com/redhat-plumbers-in-action/issue-commentator/actions/workflows/check-dist.yml
[check-dist-status]: https://github.com/redhat-plumbers-in-action/issue-commentator/actions/workflows/check-dist.yml/badge.svg

[codecov]: https://codecov.io/gh/redhat-plumbers-in-action/typescript-action
[codecov-status]: https://codecov.io/gh/redhat-plumbers-in-action/typescript-action/branch/main/graph/badge.svg
[codecov]: https://codecov.io/gh/redhat-plumbers-in-action/issue-commentator
[codecov-status]: https://codecov.io/gh/redhat-plumbers-in-action/issue-commentator/branch/main/graph/badge.svg

<!-- -->

> ...
## How does it work

> ...
## Features

> * ...
## Usage

> ...
```yml

```

### Real-life examples

Expand All @@ -55,7 +53,7 @@ Action currently accepts the following options:
```yml
# ...

- uses: redhat-plumbers-in-action/typescript-action@v1
- uses: redhat-plumbers-in-action/issue-commentator@v1
with:
milliseconds: <number>

Expand Down
18 changes: 0 additions & 18 deletions dist/action.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/action.js.map

This file was deleted.

Loading

0 comments on commit 59cfbba

Please sign in to comment.