Skip to content

Commit

Permalink
Merge pull request tiiuae#16 from karim20230/add-grovyLint-github-action
Browse files Browse the repository at this point in the history
Implement Format Checks for Groovy Code in GitHub Actions Workflow
  • Loading branch information
karim20230 authored May 24, 2024
2 parents dc06ce3 + d066966 commit 284cecd
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/format-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# SPDX-FileCopyrightText: 2022-2024 TII (SSRC) and the Ghaf contributors
# SPDX-License-Identifier: Apache-2.0

name: Format-checks

# This workflow gets triggered on push or pull request events to the main branch
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
groovy-lint:
# This job runs on an Ubuntu 22.04 runner
runs-on: ubuntu-22.04
steps:
# Checks-out our repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v3
# Sets up a Node.js environment with the specified version
- name: Set up Node.js environment
uses: actions/setup-node@v3
with:
node-version: '20.13.1'
- name: Install npm-groovy-lint
run: npm install -g npm-groovy-lint
- name: Fail if there are any errors
run: npm-groovy-lint --failon error .

0 comments on commit 284cecd

Please sign in to comment.