Bump org.json:json from 20230618 to 20231013 #155
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continous Integration | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
tags: 'v[0-9]+.[0-9]+.[0-9]+' | |
paths-ignore: | |
- './idea' | |
- 'README.md' | |
- 'LICENSE' | |
- '.github/**' | |
- '!.github/workflows/**' | |
env: | |
java: 11 | |
java-distribution: "temurin" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '${{ env.java }}' | |
distribution: '${{ env.java-distribution }}' | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Cache Maven packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Install Bamboo SDK | |
run: | | |
wget -q https://marketplace.atlassian.com/download/plugins/atlassian-plugin-sdk-tgz | |
mkdir opt | |
tar -xzf *plugin-sdk* -C opt | |
mv opt/*plugin-sdk* opt/atlassian-plugin-sdk | |
chmod a+x opt/atlassian-plugin-sdk/bin/* | |
chmod a+x opt/atlassian-plugin-sdk/apache-maven-*/bin/* | |
echo "opt/atlassian-plugin-sdk/bin" >> $GITHUB_PATH | |
opt/atlassian-plugin-sdk/bin/atlas-version | |
- name: Spotless | |
run: atlas-mvn -B spotless:check | |
- name: Build | |
run: atlas-package -DskipTests=true | |
- name: Copy artifact | |
run: mkdir staging && cp target/*.jar staging | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: plugin | |
path: staging | |
release: | |
needs: [build, test] | |
if: startsWith(github.ref, 'refs/tags/v') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get tag | |
id: get_version | |
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3) | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ steps.get_version.outputs.VERSION }} | |
release_name: Release ${{ steps.get_version.outputs.VERSION }} | |
draft: false | |
prerelease: false | |
- name: Download pre-build artifact | |
uses: actions/download-artifact@v2 | |
with: | |
name: plugin | |
path: staging | |
- name: Get artifact name | |
id: get_artifact_name | |
run: | | |
cd staging | |
echo ::set-output name=ARTIFACT::$(ls *.jar) | |
- name: Upload Release Asset | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: staging/${{ steps.get_artifact_name.outputs.ARTIFACT }} | |
asset_name: ${{ steps.get_artifact_name.outputs.ARTIFACT }} | |
asset_content_type: application/zip | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '${{ env.java }}' | |
distribution: '${{ env.java-distribution }}' | |
- uses: actions/checkout@v4 | |
- name: Cache Maven packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Install Bamboo SDK | |
run: | | |
wget -q https://marketplace.atlassian.com/download/plugins/atlassian-plugin-sdk-tgz | |
mkdir opt | |
tar -xzf *plugin-sdk* -C opt | |
mv opt/*plugin-sdk* opt/atlassian-plugin-sdk | |
chmod a+x opt/atlassian-plugin-sdk/bin/* | |
chmod a+x opt/atlassian-plugin-sdk/apache-maven-*/bin/* | |
echo "opt/atlassian-plugin-sdk/bin" >> $GITHUB_PATH | |
opt/atlassian-plugin-sdk/bin/atlas-version | |
- name: Unit tests | |
run: atlas-unit-test | |
- name: Integration tests | |
run: atlas-integration-test |