Skip to content

Commit

Permalink
NEXT-33446 - add basic CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Haberkamp committed Feb 5, 2024
1 parent 25a57f5 commit a74f27c
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Tests

on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
workflow_dispatch:

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Retrieve the cached "node_modules" directory (if present)
uses: actions/cache@v3
id: node-cache
with:
path: node_modules
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
- name: Install dependencies (if the cached directory was not found)
if: steps.node-cache.outputs.cache-hit != 'true'
run: npm ci
- name: Perform typecheck
run: npm run lint:all

0 comments on commit a74f27c

Please sign in to comment.