From 9a40af024f61e6e13a7239d5c372b8d33d58b775 Mon Sep 17 00:00:00 2001 From: Kai Arseneau Date: Tue, 19 Mar 2024 15:17:02 -0400 Subject: [PATCH] Update lint.yaml --- .github/workflows/lint.yaml | 69 ++++--------------------------------- 1 file changed, 6 insertions(+), 63 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 4b80de3a..fef2d664 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -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 @@ -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/super-linter@v6.3.0 # x-release-please-version - env: - # To report GitHub Actions status checks - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - VALIDATE_JAVASCRIPT: true - VALIDATE_JAVA: true \ No newline at end of file + working-directory: ./API \ No newline at end of file