Skip to content

Added build workflow and sonar analysis #1

Added build workflow and sonar analysis

Added build workflow and sonar analysis #1

Workflow file for this run

name: Build

Check failure on line 1 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

`permissions` is not a valid event name
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
permissions:
pull-requests: read
jobs:
build:
name: Build and Analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
java-version: 11
distribution: temurin
- name: Build
run: ./gradlew build
- name: Sonar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./gradlew sonar