diff --git a/.github/workflows/automated-lint.yaml b/.github/workflows/automated-lint.yaml new file mode 100644 index 0000000..7a31d7c --- /dev/null +++ b/.github/workflows/automated-lint.yaml @@ -0,0 +1,39 @@ +name: Automated Lint + +on: + push: + branches: [main, develop] + pull_request: + branches: [main, develop] + +permissions: + contents: read + +jobs: + lint: + runs-on: ubuntu-latest + timeout-minutes: 30 + strategy: + matrix: + node-version: [22] + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + cache-dependency-path: pnpm-lock.yaml + node-version: ${{ matrix.node-version }} + check-latest: true + cache: npm + + - name: Install dependencies + run: npx pnpm install + + - name: Check linting + run: npx pnpm lint + + - name: Check type + run: npx pnpm typecheck diff --git a/.github/workflows/automated-tests.yaml b/.github/workflows/automated-tests.yaml index 13ca61a..e133dcd 100644 --- a/.github/workflows/automated-tests.yaml +++ b/.github/workflows/automated-tests.yaml @@ -1,4 +1,4 @@ -# This workflow will do a clean install of node dependencies, check the linting and run tests across different versions of node. +# This workflow will do a clean install of node dependencies, run tests across different versions of node. name: Automated Tests @@ -82,4 +82,4 @@ jobs: run: pnpm install --prod - name: Run tests - run: pnpm test \ No newline at end of file + run: pnpm test