Merge pull request #674 from nosqlbench/feature/gh-actions

Upgrade CodeQL from v1 to v2 and setup depandabot for gh-action updates for future
This commit is contained in:
Jonathan Shook 2022-07-22 16:08:03 -05:00 committed by GitHub
commit 9f16004bc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 10 deletions

View File

@ -8,14 +8,15 @@ jobs:
build: build:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
name: checkout nosqlbench name: checkout nosqlbench
- uses: actions/setup-java@v1 - uses: actions/setup-java@v3
name: setup java name: setup java
with: with:
java-version: '17' java-version: '17'
java-package: jdk java-package: jdk
architecture: x64 architecture: x64
distribution: 'temurin'
- name: Cache Maven packages - name: Cache Maven packages
uses: actions/cache@v1 uses: actions/cache@v1

View File

@ -38,16 +38,17 @@ jobs:
steps: steps:
- uses: actions/setup-java@v1 - uses: actions/setup-java@v3
with: with:
java-version: 17 distribution: 'temurin'
java-version: '17'
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v3
# Initializes the CodeQL tools for scanning. # Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@v1 uses: github/codeql-action/init@v2
with: with:
languages: ${{ matrix.language }} languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file. # If you wish to specify custom queries, you can do so here or in a config file.
@ -58,7 +59,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below) # If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild - name: Autobuild
uses: github/codeql-action/autobuild@v1 uses: github/codeql-action/autobuild@v2
# Command-line programs to run using the OS shell. # Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl # 📚 https://git.io/JvXDl
@ -72,4 +73,4 @@ jobs:
# make release # make release
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1 uses: github/codeql-action/analyze@v2

10
.github/workflows/dependabot.yml vendored Normal file
View File

@ -0,0 +1,10 @@
# Set update schedule for GitHub Actions
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every week
interval: "weekly"

View File

@ -13,11 +13,12 @@ jobs:
steps: steps:
- name: checkout repo - name: checkout repo
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: setup java - name: setup java
uses: actions/setup-java@v1 uses: actions/setup-java@v3
with: with:
distribution: 'temurin'
java-version: '17' java-version: '17'
java-package: jdk java-package: jdk
architecture: x64 architecture: x64