Skip to content

Commit

Permalink
feat(workflow): Add GitHub Actions workflow for pull requests
Browse files Browse the repository at this point in the history
This commit adds a new GitHub Actions workflow, defined in `.github/workflows/pull-request.yml`, that gets triggered on pull requests. The workflow includes linting and test jobs that run on the latest Ubuntu and Node 20 environment.
  • Loading branch information
ndragun92 committed Mar 14, 2024
1 parent ecd7201 commit 9a4f607
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Pull Request Checks

on:
pull_request:
types: [opened,synchronize]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run lint

test:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm test
env:
NODE_ENV: production

0 comments on commit 9a4f607

Please sign in to comment.