Skip to content

Commit 9237026

Browse files
NepipenkoIgorigor.nepipenko
andauthored
Fix/1534 (#1537)
* fix(ref:1534): quality check in fork * fix(ref:1534): right logo message * fix(ref:1534): stylelint workaround * fix(ref:1534): run PR quality check only forked * fix(ref:1534): run PR quality check only forked v1 * fix(ref:1534): latest actions --------- Co-authored-by: igor.nepipenko <[email protected]>
1 parent be89d97 commit 9237026

File tree

9 files changed

+557
-607
lines changed

9 files changed

+557
-607
lines changed

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737

3838
# Initializes the CodeQL tools for scanning.
3939
- name: Initialize CodeQL
40-
uses: github/codeql-action/init@v2
40+
uses: github/codeql-action/init@v3
4141
with:
4242
languages: ${{ matrix.language }}
4343
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -50,7 +50,7 @@ jobs:
5050
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
5151
# If this step fails, then you should remove it and run the build manually (see below)
5252
- name: Autobuild
53-
uses: github/codeql-action/autobuild@v2
53+
uses: github/codeql-action/autobuild@v3
5454

5555
# ℹ️ Command-line programs to run using the OS shell.
5656
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -63,6 +63,6 @@ jobs:
6363
# ./location_of_script_within_repo/buildscript.sh
6464

6565
- name: Perform CodeQL Analysis
66-
uses: github/codeql-action/analyze@v2
66+
uses: github/codeql-action/analyze@v3
6767
with:
6868
category: '/language:${{matrix.language}}'

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
steps:
6161
- name: Post to a Slack channel
6262
id: slack
63-
uses: slackapi/slack-github-action@v1.27.0
63+
uses: slackapi/slack-github-action@v1.28.0
6464
with:
6565
channel-id: 'deployments'
6666
payload: |

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
steps:
4646
- name: Post to a Slack channel
4747
id: slack
48-
uses: slackapi/slack-github-action@v1.27.0
48+
uses: slackapi/slack-github-action@v1.28.0
4949
with:
5050
channel-id: 'deployments'
5151
payload: |

.github/workflows/quality-check.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,36 @@
11
name: build and quality
22

3-
on: [push]
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
pull_request:
8+
branches:
9+
- main
10+
- develop
11+
types: [opened, synchronize, reopened]
412

513
jobs:
14+
should-run:
15+
runs-on: ubuntu-latest
16+
outputs:
17+
should-run-check: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository }}
18+
steps:
19+
- run: echo "Checking if workflow should run"
20+
621
quality-check:
22+
needs: should-run
23+
if: needs.should-run.outputs.should-run-check == 'true'
724
runs-on: ubuntu-latest
825
permissions:
926
contents: write
27+
pull-requests: write
1028
steps:
1129
- uses: actions/checkout@v4
1230
with:
1331
submodules: true
14-
ref: ${{ env.REF }}
32+
ref: ${{ github.event.pull_request.head.sha }}
33+
fetch-depth: 0
1534
- uses: oven-sh/setup-bun@v2
1635
with:
1736
bun-version: latest

.github/workflows/scripts/quality.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ set -e
44

55
bun lint
66

7-
# run snyk:auth -- $snyk_token
8-
# bun run snyk:test
97

108
output=$(bun run type-coverage)
119
if echo "$output" | grep -q "lower than "; then

.stylelintrc.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
"no-empty-source": null,
77
"scss/comment-no-empty": null,
88
"no-descending-specificity": null,
9+
"at-rule-no-unknown": null,
10+
"at-rule-no-deprecated": null,
911
"selector-type-no-unknown": [
1012
true,
1113
{

0 commit comments

Comments
 (0)