diff --git a/.github/workflows/check-docs.yml b/.github/workflows/check-docs.yml new file mode 100644 index 00000000000..b14911092ce --- /dev/null +++ b/.github/workflows/check-docs.yml @@ -0,0 +1,26 @@ +name: Check docs build +# This workflow runs when a PR is labeled with `docs` +# This will check if the docs build successfully by running `npm run build` +on: + pull_request: + paths: + - './docs' + +jobs: + check-docs-build: + if: ${{ github.event.label.name == 'docs' }} + + name: Check docs build + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v3 + with: + persist-credentials: false + fetch-depth: 0 + + - name: Install dependencies and build docs 🧱 + run: | + cd docs + npm install + npm run build diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index f9a7c4a9230..d5aca516d3c 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -40,7 +40,11 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 +<<<<<<< HEAD - uses: technote-space/get-diff-action@v6.1.0 +======= + - uses: technote-space/get-diff-action@v6.0.1 +>>>>>>> ba8c872 (chore: Fixing github action workflows) with: PATTERNS: | **/**.go @@ -58,9 +62,8 @@ jobs: # queries: ./path/to/local/query, your-org/your-repo/queries@main queries: crypto-com/cosmos-sdk-codeql@main,security-and-quality if: env.GIT_DIFF - # 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) +<<<<<<< HEAD - name: Autobuild uses: github/codeql-action/autobuild@v2 if: env.GIT_DIFF @@ -75,6 +78,9 @@ jobs: #- run: | # make bootstrap # make release +======= + - run: make build +>>>>>>> 1ebaf3e (chore: Specifying build command for the CodeQL action) - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2