Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimize: optimize github workflow #5431

Merged
merged 2 commits into from Mar 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
# step 1
- name: "Checkout"
uses: actions/checkout@v2.4.0
uses: actions/checkout@v3
# step 2
- name: "Set up Java JDK"
uses: actions/setup-java@v2.5.0
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
steps:
# step 1
- name: "Checkout"
uses: actions/checkout@v2
uses: actions/checkout@v3
# step 2
- name: "Set up QEMU"
id: qemu
Expand Down
42 changes: 7 additions & 35 deletions .github/workflows/codeql-analysis.yml
@@ -1,14 +1,3 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
Expand All @@ -30,43 +19,26 @@ jobs:
fail-fast: false
matrix:
language: [ 'java' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
# step 1
- name: "Checkout repository"
uses: actions/checkout@v2
- name: "Checkout"
uses: actions/checkout@v3

# step 2: Initializes the CodeQL tools for scanning.
- name: "Initialize CodeQL"
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# step 3
# 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)
- name: "Autobuild"
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2

# step 4
# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

# step 5
- name: "Perform CodeQL Analysis"
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
6 changes: 3 additions & 3 deletions .github/workflows/license-checker.yaml
Expand Up @@ -10,17 +10,17 @@ jobs:
steps:
# step 1
- name: Checkout
uses: actions/checkout@v2.4.0
uses: actions/checkout@v3
# step 2
- name: Check License Header
uses: apache/skywalking-eyes/header@8fc52baabc14c86294d96034bcc194cfa7f76b05
uses: apache/skywalking-eyes/header@main
with:
log: info
config: .licenserc.yaml
mode: check
# step 3
- name: Check Dependencies' License
uses: apache/skywalking-eyes/dependency@8fc52baabc14c86294d96034bcc194cfa7f76b05
uses: apache/skywalking-eyes/dependency@main
with:
log: info
config: .licenserc.yaml
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publishes.yml
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
# step 1
- name: "Checkout"
uses: actions/checkout@v2.4.0
uses: actions/checkout@v3
# step 2
- name: "Setup Java JDK"
uses: actions/setup-java@v3.9.0
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
steps:
# step 1
- name: "Checkout"
uses: actions/checkout@v2.4.0
uses: actions/checkout@v3
# step 2
- name: "Setup Java JDK"
uses: actions/setup-java@v3.9.0
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Expand Up @@ -32,7 +32,7 @@ jobs:
steps:
# step 1
- name: "Checkout"
uses: actions/checkout@v2.4.0
uses: actions/checkout@v3
# step 2
- name: "Set up Java JDK"
uses: actions/setup-java@v2.5.0
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
steps:
# step 1
- name: "Checkout"
uses: actions/checkout@v2.4.0
uses: actions/checkout@v3
# step 2
- name: "Set up Java JDK"
uses: actions/setup-java@v2.5.0
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
steps:
# step 1
- name: "Checkout"
uses: actions/checkout@v2
uses: actions/checkout@v3
# step 2
- name: "Set up QEMU"
id: qemu
Expand Down