Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: format and unify github actions workflow definitions (#1320)
Yilong Li3d4c95e321ca
diff --git a/.github/workflows/build-release-image.yml b/.github/workflows/build-release-image.ymlindex 6d353f3e1f..0a82390c68 100644--- a/.github/workflows/build-release-image.yml+++ b/.github/workflows/build-release-image.yml@@ -65,7 +65,7 @@ jobs:- uses: actions/setup-node@v3with:node-version: "14"- cache: "pnpm"+ cache: pnpmcache-dependency-path: "frontend/pnpm-lock.yaml"- run: pnpm install --frozen-lockfileworking-directory: frontend@@ -76,7 +76,7 @@ jobs:- uses: actions/setup-go@v2with:go-version: 1.16- - name: "Release"+ - name: Releaseuses: goreleaser/goreleaser-action@v2with:args: releasediff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.ymlindex 9da39d3364..de3dea06a5 100644--- a/.github/workflows/codeql-analysis.yml+++ b/.github/workflows/codeql-analysis.yml@@ -9,16 +9,18 @@# the `language` matrix defined below to confirm you have the correct set of# supported CodeQL languages.#-name: "CodeQL"+name: CodeQLon:push:- branches: [ main ]+ branches:+ - mainpull_request:# The branches below must be a subset of the branches above- branches: [ main ]+ branches:+ - mainschedule:- - cron: '27 10 * * 3'+ - cron: "27 10 * * 3"jobs:analyze:@@ -32,40 +34,42 @@ jobs:strategy:fail-fast: falsematrix:- language: [ 'go', 'javascript' ]+ language:+ - go+ - javascript# 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-analyzedsteps:- - name: Checkout repository- uses: actions/checkout@v2+ - name: Checkout repository+ uses: actions/checkout@v2- # Initializes the CodeQL tools for scanning.- - name: Initialize CodeQL- uses: github/codeql-action/init@v1- 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+ # Initializes the CodeQL tools for scanning.+ - name: Initialize CodeQL+ uses: github/codeql-action/init@v1+ 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- # 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+ # 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- # ℹ️ Command-line programs to run using the OS shell.- # 📚 https://git.io/JvXDl+ # ℹ️ 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+ # ✏️ 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+ #- run: |+ # make bootstrap+ # make release- - name: Perform CodeQL Analysis- uses: github/codeql-action/analyze@v1+ - name: Perform CodeQL Analysis+ uses: github/codeql-action/analyze@v1diff --git a/.github/workflows/install-bb.yml b/.github/workflows/install-bb.ymldeleted file mode 100644index aa2ef05f4d..0000000000--- a/.github/workflows/install-bb.yml+++ /dev/null@@ -1,21 +0,0 @@-# This workflow tests if scripts/install_bb.sh is working correctly.-name: install bb--on:- push:- branches:- - "main"- pull_request:--jobs:- install:- strategy:- matrix:- os: [ubuntu-latest, macos-latest]- runs-on: ${{matrix.os}}- steps:- - uses: actions/checkout@v2- - name: run install script- run: ./scripts/install_bb.sh- - name: check bb version- run: bb versiondiff --git a/.github/workflows/push-dockerhub.yml b/.github/workflows/push-dockerhub.ymlindex cec0b0abfc..7d10a7cb04 100644--- a/.github/workflows/push-dockerhub.yml+++ b/.github/workflows/push-dockerhub.yml@@ -1,12 +1,9 @@-# This is a basic workflow to help you get started with Actions-name: Build and push image to docker hub-# Controls when the workflow will runon:- # Triggers the workflow on push or pull request events but only for the main branchpush:- branches: [main]+ branches:+ - main# Allows you to run this workflow manually from the Actions tabworkflow_dispatch:diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex 81bd6248b0..1cbff433b0 100644--- a/.github/workflows/tests.yml+++ b/.github/workflows/tests.yml@@ -1,9 +1,9 @@-name: build+name: teston:push:branches:- - "main"+ - mainpull_request:jobs:@@ -18,6 +18,7 @@ jobs:uses: golangci/golangci-lint-action@v2with:version: v1.45.2+go-tidy:runs-on: ubuntu-lateststeps:@@ -25,10 +26,11 @@ jobs:- uses: actions/setup-go@v2with:go-version: 1.17- - name: Verify tidy+ - name: Verify go.mod is tidyrun: |go mod tidygit diff --exit-code+go-tests:runs-on: ubuntu-lateststeps:@@ -41,3 +43,16 @@ jobs:go-version: 1.17- run: |go test -v ./...++ # tests if scripts/install_bb.sh is working correctly.+ install-bb:+ strategy:+ matrix:+ os: [ubuntu-latest, macos-latest]+ runs-on: ${{matrix.os}}+ steps:+ - uses: actions/checkout@v2+ - name: run install script+ run: ./scripts/install_bb.sh+ - name: check bb version+ run: bb version