From 3624f3082ba0116f987bdef094a18cbf7c63bda5 Mon Sep 17 00:00:00 2001 From: Kai Arseneau Date: Tue, 19 Mar 2024 09:47:57 -0400 Subject: [PATCH] Linting & Node fix? --- .github/workflows/javaLinting.yaml | 28 ++++++++++++++++++++++++++++ .github/workflows/node.js.yaml | 3 ++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/javaLinting.yaml diff --git a/.github/workflows/javaLinting.yaml b/.github/workflows/javaLinting.yaml new file mode 100644 index 00000000..91cf2df5 --- /dev/null +++ b/.github/workflows/javaLinting.yaml @@ -0,0 +1,28 @@ +name: Lint + +on: [push] + +jobs: + build: + name: Lint + runs-on: ubuntu-latest + + permissions: + contents: read + packages: read + # To report GitHub Actions status checks + statuses: write + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + # super-linter needs the full git history to get the + # list of files that changed across commits + fetch-depth: 0 + + - name: Super-linter + uses: super-linter/super-linter@v6.3.0 # x-release-please-version + env: + # To report GitHub Actions status checks + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/node.js.yaml b/.github/workflows/node.js.yaml index 9a099f77..4893ddc2 100644 --- a/.github/workflows/node.js.yaml +++ b/.github/workflows/node.js.yaml @@ -23,13 +23,14 @@ jobs: - name: Check out repository code uses: actions/checkout@v4 + - run: cd ./front-end + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} cache: 'npm' - - run: cd ./front-end - run: npm ci - run: npm run build --if-present - run: npm test \ No newline at end of file