Skip to content

Commit

Permalink
Merge branch 'release/1.11.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
theshadowco committed May 25, 2022
2 parents 0add065 + 7da06ce commit 5c6d2b2
Show file tree
Hide file tree
Showing 66 changed files with 8,954 additions and 1,777 deletions.
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@


# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "gradle" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
27 changes: 27 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Java CI

on: [push, pull_request]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
java_version: ['11', '17']
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java_version }}
uses: actions/[email protected]
with:
java-version: ${{ matrix.java_version }}
distribution: 'adopt'
- name: Build with Gradle
run: ./gradlew check --stacktrace
- name: Archive test results
if: failure()
uses: actions/upload-artifact@v3
with:
name: junit_report_${{ matrix.os }}_${{ matrix.java_version }}
path: build/reports/tests/test
40 changes: 40 additions & 0 deletions .github/workflows/night_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Night build
on:
schedule:
- cron: '0 6 * * *' # run at 6 AM UTC
push:
branches:
- nigth_build
workflow_dispatch:

jobs:
nightly:
name: Night build
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
with:
ref: nigth_build
- name: Set up JDK
uses: actions/[email protected]
with:
java-version: 11
distribution: 'adopt'
- name: Build with Gradle
run: ./gradlew build
- name: Save file name
run: echo "PLUGIN_FILE_NAME=$(ls -t ./build/libs | head -1)" >> $GITHUB_ENV
- name: Save current date
run: echo "PLUGIN_CURRENT_DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV
- name: Deploy build
uses: WebFreak001/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: https://uploads.github.com/repos/1c-syntax/sonar-bsl-plugin-community/releases/51033599/assets{?name,label} # find out this value by opening https://api.github.com/repos/<owner>/<repo>/releases in your browser and copy the full "upload_url" value including the {?name,label} part
release_id: 51033599 # same as above (id can just be taken out the upload_url, it's used to find old releases)
asset_path: ./build/libs/${{ env.PLUGIN_FILE_NAME }} # path to archive to upload
asset_name: sonar-communitybsl-plugin-nightly-${{ env.PLUGIN_CURRENT_DATE }}.jar # name, format is "-nightly-20210101"
asset_content_type: application/java-archive # required by GitHub API
max_releases: 7 # optional, if there are more releases than this matching the asset_name, the oldest ones are going to be deleted
28 changes: 28 additions & 0 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: QA

on:
push:
branches:
- develop
pull_request:

jobs:
build:
runs-on: ubuntu-latest
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.event.repository.full_name
steps:
- uses: actions/checkout@v3
with:
fetch-depth: ''
- run: |
git fetch --prune --unshallow
- name: Set up JDK 11
uses: actions/[email protected]
with:
java-version: 11
distribution: 'adopt'
- name: SonarCloud Scan
run: ./gradlew check sonarqube
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Upload to release

on:
release:
types: [published, edited]

jobs:
build:

runs-on: ubuntu-latest
name: Upload to release

steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/[email protected]
with:
java-version: 11
distribution: 'adopt'
- name: Build with Gradle
run: ./gradlew build
- name: Upload jar to release
uses: AButler/[email protected]
with:
files: './build/libs/*.jar'
repo-token: ${{ secrets.GITHUB_TOKEN }}
8 changes: 3 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,12 @@ build/
intellij-bsl/src/test/resources/parser/.idea/

gen/
out/

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

\.idea/sonarlint-state\.xml

\.idea/sonarlint\.xml
/.idea/jarRepositories.xml
/.idea/vcs.xml
/.idea/compiler.xml
12 changes: 11 additions & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

163 changes: 0 additions & 163 deletions COPYING.LESSER.md

This file was deleted.

Loading

0 comments on commit 5c6d2b2

Please sign in to comment.