Skip to content

Commit

Permalink
Add Test PR workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
arifszn committed Jul 1, 2024
1 parent 5b47c9d commit 1582a7f
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test Deployment

on:
pull_request:
branches: [main]

jobs:
test-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'

- name: Restore cache
uses: actions/cache@v4
with:
path: |
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}

- name: Install dependencies
run: npm ci

- name: Run lint
run: npm run lint

- name: Run prettier
run: npm run prettier

- name: Build
run: npm run build
env:
CI: ''

0 comments on commit 1582a7f

Please sign in to comment.