Skip to content

Commit

Permalink
Update GitHub actions configuration
Browse files Browse the repository at this point in the history
The GitHub actions configuration file has been updated. The changes include setting up Node.js, installing pnpm, and making revisions to each of the steps in the workflow. Furthermore, a portion of the code relating to the 'biome' runner is now commented out.

Signed-off-by: Giovanni Ravalico <[email protected]>
  • Loading branch information
suddenlyGiovanni committed Mar 7, 2024
1 parent 2279dee commit def4b16
Showing 1 changed file with 66 additions and 21 deletions.
87 changes: 66 additions & 21 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,19 @@ jobs:
name: runner / prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 📥 Checkout code
uses: actions/checkout@v4
- name: 🛠️ Set up Node.js
uses: actions/setup-node@v4
with:
node-version: current
cache: "pnpm"

- name: 📦 Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8

- uses: EPMatt/reviewdog-action-prettier@v1
with:
github_token: ${{ secrets.github_token }}
Expand All @@ -27,34 +39,64 @@ jobs:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: 📥 Checkout code
uses: actions/checkout@v4

- name: 🛠️ Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "21"
node-version: current
cache: "pnpm"

- name: 📦 Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8

- uses: reviewdog/action-eslint@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review # Change reporter.
eslint_flags: "src/"
biome:
name: runner / Biome
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: mongolyy/reviewdog-action-biome@v1
workdir: apps/web

- uses: reviewdog/action-eslint@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review # Change reporter.
workdir: packages/ui
# biome:
# name: runner / Biome
# runs-on: ubuntu-latest
# permissions:
# contents: read
# pull-requests: write
# steps:
# - name: 📥 Checkout code
# uses: actions/checkout@v4
# - uses: mongolyy/reviewdog-action-biome@v1
# with:
# github_token: ${{ secrets.github_token }}
# reporter: github-pr-review

tsc:
name: runner / tsc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 📥 Checkout code
uses: actions/checkout@v4

- name: 🛠️ Set up Node.js
uses: actions/setup-node@v4
with:
node-version: current
cache: "pnpm"

- name: 📦 Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8


- uses: EPMatt/reviewdog-action-tsc@v1
with:
github_token: ${{ secrets.github_token }}
Expand All @@ -73,7 +115,7 @@ jobs:
name: runner / misspell
runs-on: ubuntu-latest
steps:
- name: Check out code.
- name: 📥 Checkout code
uses: actions/checkout@v4
- name: misspell
uses: reviewdog/action-misspell@v1
Expand All @@ -85,7 +127,9 @@ jobs:
name: runner / markdownlint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 📥 Checkout code
uses: actions/checkout@v4

- name: markdownlint
uses: reviewdog/action-markdownlint@v0
with:
Expand All @@ -95,14 +139,15 @@ jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 📥 Checkout code
uses: actions/checkout@v4
- uses: reviewdog/action-actionlint@v1

hadolint:
name: runner / hadolint
runs-on: ubuntu-latest
steps:
- name: Check out code
- name: 📥 Checkout code
uses: actions/checkout@v4
- name: hadolint
uses: reviewdog/action-hadolint@v1
Expand Down

0 comments on commit def4b16

Please sign in to comment.