diff --git a/.github/workflows/code-certify.yml b/.github/workflows/lint.yml similarity index 86% rename from .github/workflows/code-certify.yml rename to .github/workflows/lint.yml index ced362ea..29f5b366 100644 --- a/.github/workflows/code-certify.yml +++ b/.github/workflows/lint.yml @@ -1,4 +1,4 @@ -name: Certify Changes +name: Lint Changes on: workflow_dispatch: @@ -18,7 +18,7 @@ permissions: jobs: certify: - name: Certify Build Changes + name: Lint Changes runs-on: ubuntu-latest steps: - name: Checkout Repository @@ -27,7 +27,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: "18.x" + node-version: "20.x" cache: "npm" - name: Cache node modules @@ -44,8 +44,5 @@ jobs: - name: Run Typecheck run: npm run check:ci - - name: Run Jest - run: npm run test:ci - - name: Run Linter run: npm run lint:ci diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..17f747fc --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,45 @@ +name: Test Changes + +on: + workflow_dispatch: + pull_request: + branches: "*" + paths: + - "src/**" + - "public/**" + - "*.json" + - "*.js" + - "*.jsx" + - "*.ts" + - "*.tsx" + +permissions: + contents: read + +jobs: + certify: + name: Test Changes + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: "20.x" + cache: "npm" + + - name: Cache node modules + uses: actions/cache@v3 + with: + path: node_modules + key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-modules- + + - name: Install Dependencies + run: npm install --legacy-peer-deps + + - name: Run Jest + run: npm run test:ci