From 768892b930f94f69b199435e02b84baca5052025 Mon Sep 17 00:00:00 2001 From: Josh Curtiss Date: Mon, 3 Jun 2024 11:52:07 -0500 Subject: [PATCH] ci: Add tests and standards to GitHub Actions --- .github/workflows/build-and-deploy.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 684b632..b1677b6 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -31,14 +31,18 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 18 - cache: 'npm' + node-version-file: ".nvmrc" + cache: "npm" - name: Install dependencies - run: npm install + run: npm ci + - name: Tests + run: npm test --if-present + - name: Standardization + run: npm run standards --if-present - name: Build run: npm run build - name: Setup Pages