mirror of
https://github.com/prymitive/karma
synced 2026-05-05 03:16:51 +00:00
fix(ci): only scan on merges
This commit is contained in:
committed by
Łukasz Mierzwa
parent
4f76ad1d2b
commit
938e5dab98
2
.github/workflows/actionlint.yml
vendored
2
.github/workflows/actionlint.yml
vendored
@@ -10,7 +10,7 @@ permissions:
|
||||
|
||||
jobs:
|
||||
actionlint:
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: "Checkout Repository"
|
||||
uses: actions/checkout@v3
|
||||
|
||||
2
.github/workflows/deps.yml
vendored
2
.github/workflows/deps.yml
vendored
@@ -6,7 +6,7 @@ permissions:
|
||||
|
||||
jobs:
|
||||
dependency-review:
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: "Checkout Repository"
|
||||
uses: actions/checkout@v3
|
||||
|
||||
2
.github/workflows/duplicates.yml
vendored
2
.github/workflows/duplicates.yml
vendored
@@ -4,7 +4,7 @@ on:
|
||||
types: [opened, edited]
|
||||
jobs:
|
||||
run:
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: wow-actions/potential-duplicates@v1.1.0
|
||||
with:
|
||||
|
||||
2
.github/workflows/go-maintenance.yml
vendored
2
.github/workflows/go-maintenance.yml
vendored
@@ -7,7 +7,7 @@ on:
|
||||
jobs:
|
||||
go-mod-upgrades:
|
||||
name: Upgrade all Go modules
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
2
.github/workflows/go-mod-tidy.yml
vendored
2
.github/workflows/go-mod-tidy.yml
vendored
@@ -13,7 +13,7 @@ on:
|
||||
jobs:
|
||||
version-sync:
|
||||
name: Run go mod tidy
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
2
.github/workflows/go-version.yml
vendored
2
.github/workflows/go-version.yml
vendored
@@ -10,7 +10,7 @@ on:
|
||||
jobs:
|
||||
version-sync:
|
||||
name: Synchronise go-version
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
2
.github/workflows/lock.yml
vendored
2
.github/workflows/lock.yml
vendored
@@ -6,7 +6,7 @@ on:
|
||||
|
||||
jobs:
|
||||
lock:
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Lock closed issues and PRs
|
||||
uses: dessant/lock-threads@v4
|
||||
|
||||
2
.github/workflows/node-version.yml
vendored
2
.github/workflows/node-version.yml
vendored
@@ -10,7 +10,7 @@ on:
|
||||
jobs:
|
||||
version-sync:
|
||||
name: Synchronise node-version
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
2
.github/workflows/openapi.yml
vendored
2
.github/workflows/openapi.yml
vendored
@@ -10,7 +10,7 @@ on:
|
||||
jobs:
|
||||
code-sync:
|
||||
name: Regenerate OpenAPI client code
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
7
.github/workflows/scan.yml
vendored
7
.github/workflows/scan.yml
vendored
@@ -4,16 +4,11 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
schedule:
|
||||
- cron: "0 6 * * 4"
|
||||
|
||||
jobs:
|
||||
codeql:
|
||||
name: CodeQL
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
security-events: write
|
||||
actions: read
|
||||
|
||||
2
.github/workflows/stale.yml
vendored
2
.github/workflows/stale.yml
vendored
@@ -6,7 +6,7 @@ on:
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/stale@v7.0.0
|
||||
with:
|
||||
|
||||
36
.github/workflows/test.yml
vendored
36
.github/workflows/test.yml
vendored
@@ -14,7 +14,7 @@ on:
|
||||
jobs:
|
||||
test-go:
|
||||
name: Test Go code
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
@@ -51,7 +51,7 @@ jobs:
|
||||
|
||||
lint-go:
|
||||
name: Lint Go code
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
@@ -82,7 +82,7 @@ jobs:
|
||||
|
||||
test-js:
|
||||
name: Test JS code
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
env:
|
||||
@@ -112,7 +112,7 @@ jobs:
|
||||
|
||||
lint-js:
|
||||
name: Lint JS code
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
@@ -129,7 +129,7 @@ jobs:
|
||||
|
||||
format-go:
|
||||
name: Check Go code formatting
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
@@ -147,7 +147,7 @@ jobs:
|
||||
|
||||
format-js:
|
||||
name: Check JS code formatting
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
@@ -167,7 +167,7 @@ jobs:
|
||||
|
||||
deps-js:
|
||||
name: Check JS dependencies
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
@@ -180,7 +180,7 @@ jobs:
|
||||
|
||||
package-lock:
|
||||
name: Check package-lock.json
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
@@ -200,7 +200,7 @@ jobs:
|
||||
|
||||
lint-versions:
|
||||
name: Lint Versions
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
@@ -210,7 +210,7 @@ jobs:
|
||||
|
||||
typescript:
|
||||
name: Check for non-typescript components
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
@@ -220,7 +220,7 @@ jobs:
|
||||
|
||||
git-commit:
|
||||
name: Lint git commit
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
@@ -234,7 +234,7 @@ jobs:
|
||||
|
||||
docs:
|
||||
name: Lint documentation
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
@@ -260,7 +260,7 @@ jobs:
|
||||
- typescript
|
||||
- git-commit
|
||||
- docs
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: All linters passed
|
||||
run: "true"
|
||||
@@ -269,7 +269,7 @@ jobs:
|
||||
name: Benchmark Go code compare
|
||||
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
|
||||
needs: stage-test-and-lint
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
@@ -323,7 +323,7 @@ jobs:
|
||||
name: Webpack bundle size compare
|
||||
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
|
||||
needs: stage-test-and-lint
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
@@ -358,7 +358,7 @@ jobs:
|
||||
name: Percy UI snapshots
|
||||
if: github.event_name != 'release' && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
|
||||
needs: stage-test-and-lint
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
@@ -391,7 +391,7 @@ jobs:
|
||||
cross-compile:
|
||||
name: Cross compile binaries
|
||||
needs: stage-test-and-lint
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
@@ -453,7 +453,7 @@ jobs:
|
||||
docker:
|
||||
name: Build docker image
|
||||
needs: stage-test-and-lint
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
Reference in New Issue
Block a user