Skip to content

Commit

Permalink
refactor: move all code checks into single workflow (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
sockmaster27 authored Jun 4, 2024
1 parent 94c0fe3 commit 11ed99b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 25 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/node.js.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI
name: CI

on:
push:
Expand Down Expand Up @@ -43,22 +40,27 @@ jobs:
- ${{ needs.configure.outputs.minimum-version }}
- stable
node-version:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
- 18.x
- 20.x
jdk-version:
- '21'

steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
java-version: ${{ matrix.jdk-version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Check code formatting
run: npx prettier . --check
- name: Run linter
run: npx eslint .
- name: Run tests on VS Code ${{ matrix.vscode-version }}
run: xvfb-run -a npm test
env:
Expand Down
19 changes: 0 additions & 19 deletions .github/workflows/code-checks.yml

This file was deleted.

0 comments on commit 11ed99b

Please sign in to comment.