diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/analyze.yml similarity index 68% rename from .github/workflows/codeql-analysis.yml rename to .github/workflows/analyze.yml index 99dcc1e..adf5000 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/analyze.yml @@ -1,34 +1,32 @@ -name: "CodeQL" +name: analyze on: push: branches: [ main ] pull_request: - # The branches below must be a subset of the branches above branches: [ main ] schedule: - - cron: '27 2 * * 6' + - cron: '24 21 * * 6' jobs: analyze: - name: Analyze runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write strategy: fail-fast: false matrix: language: [ 'java' ] + permissions: + actions: read + contents: read + security-events: write steps: - - name: Checkout Repository + - name: checkout repository uses: actions/checkout@v2 - - name: Initialize CodeQL + - name: initialize CodeQL uses: github/codeql-action/init@v1 with: languages: ${{ matrix.language }} - - name: Autobuild + - name: autobuild uses: github/codeql-action/autobuild@v1 - - name: Perform CodeQL Analysis + - name: perform CodeQL analysis uses: github/codeql-action/analyze@v1 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..e3b6974 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,21 @@ +name: build + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: checkout repository + uses: actions/checkout@v2 + - name: set up java + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + - name: build with maven + run: mvn --batch-mode --file pom.xml package