Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ name: Lint

on:
workflow_call:
inputs:
node-version:
description: "Node version on which to run the tests"
type: number
default: 20

secrets:
turbo_token:
required: false
Expand All @@ -16,9 +10,6 @@ on:
required: false
description: Slug of the remote cache Vercel team

env:
NODE_VERSION: ${{ inputs.node-version }}

jobs:
lint:
name: Lint
Expand All @@ -33,7 +24,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
node-version-file: .node-version
cache: "pnpm"

- name: Install dependencies
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
- name: Install dependencies
run: pnpm install

# TODO: this step can be removed, but that'll reduce the visibility of compilation errors
- name: Build
run: pnpm build
env:
Expand Down
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ Check out the [official documentation](https://docs.github.com/en/actions/using-

### Examples

- Populate a project board with new PRs using `pr-link-project`
#### `pr-lint-project`

Populate a project board with new PRs using `pr-link-project`:

```yml
on:
Expand All @@ -21,3 +23,29 @@ jobs:
project_name: "My automated broject board"
column_name: "In progress"
```

#### `lint` and `test`

Single workflow for testing and linting a Node.js project:

```yml
on:
push:

jobs:
test:
uses: driimus/shared-workflows/.github/workflows/test.yml@main
with:
node-version: 20
# Optional Turborepo credentials to use for Remote Caching
secrets:
turbo_token: ${{ secrets.TURBO_TOKEN }}
turbo_team: ${{ secrets.TURBO_TEAM }}

lint:
uses: driimus/shared-workflows/.github/workflows/lint.yml@main
# Optional Turborepo credentials to use for Remote Caching
secrets:
turbo_token: ${{ secrets.TURBO_TOKEN }}
turbo_team: ${{ secrets.TURBO_TEAM }}
```