Skip to content

Commit

Permalink
Update lint.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
gr812b committed Mar 19, 2024
1 parent d637386 commit 9a40af0
Showing 1 changed file with 6 additions and 63 deletions.
69 changes: 6 additions & 63 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# This is a basic workflow to help you get started with Actions
name: Lint

run-name: {{ github.workflow }}, {{ github.run_number }}, {{ github.run_id }}, {{ github.actor }}, {{ github }}, {{ job }}, {{ steps }}
name: Lint Demo
run-name: Testing

on: [pull_request]

jobs:
Build-Java-Maven:
build:
runs-on: ubuntu-latest
name: "Build with Maven"

steps:
- run: echo "${{ github }}, ${job}, ${steps}"

- name: Check out repository code
uses: actions/checkout@v4

Expand All @@ -23,62 +24,4 @@ jobs:

- name: Build with Maven
run: mvn -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn package --file pom.xml
working-directory: ./API

Build-Node.js:
runs-on: ubuntu-latest
name: "Build with Node.js"

strategy:
matrix:
node-version: [18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- name: Check out repository code
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: front-end/package-lock.json

- name: Install dependencies
run: npm ci --force
working-directory: ./front-end

- name: Build
run: npm run build --if-present
working-directory: ./front-end

- name: Test
run: npm test
working-directory: ./front-end

Lint:
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/[email protected] # x-release-please-version
env:
# To report GitHub Actions status checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_JAVASCRIPT: true
VALIDATE_JAVA: true
working-directory: ./API

0 comments on commit 9a40af0

Please sign in to comment.